Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  package org.opendope.conditions;
  
  import java.util.List;
  import java.util.Map;
  
 

Java class for anonymous complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType>
   <complexContent>
     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
       <sequence>
         <choice maxOccurs="unbounded">
           <element ref="{http://opendope.org/conditions}xpathref" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}and" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}or" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}not" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}conditionref" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}true" minOccurs="0"/>
           <element ref="{http://opendope.org/conditions}false" minOccurs="0"/>
         </choice>
       </sequence>
     </restriction>
   </complexContent>
 </complexType>
 
 
 @XmlType(name = "", propOrder = {
     "xpathrefOrAndOrOr"
 })
 @XmlRootElement(name = "and")
 public class And implements Evaluable {
 
     @XmlElementRefs({
         @XmlElementRef(name = "and", namespace = "http://opendope.org/conditions", type = And.class),
         @XmlElementRef(name = "xpathref", namespace = "http://opendope.org/conditions", type = Xpathref.class),
         @XmlElementRef(name = "not", namespace = "http://opendope.org/conditions", type = Not.class),
         @XmlElementRef(name = "or", namespace = "http://opendope.org/conditions", type = Or.class),
         @XmlElementRef(name = "conditionref", namespace = "http://opendope.org/conditions", type = Conditionref.class)
     })
     protected List<EvaluablexpathrefOrAndOrOr;

    
Gets the value of the xpathrefOrAndOrOr property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the xpathrefOrAndOrOr property.

For example, to add a new item, do as follows:

    getXpathrefOrAndOrOr().add(newItem);
 

Objects of the following type(s) are allowed in the list

 
     public List<EvaluablegetXpathrefOrAndOrOr() {
         if ( == null) {
              = new ArrayList<Evaluable>();
         }
         return this.;
     }
     
 	public boolean evaluate(WordprocessingMLPackage pkg
 			Map<StringCustomXmlPartcustomXmlDataStorageParts,
 			Conditions conditions,
    	for (Evaluable particle : ) {
    		
        	boolean result = particle.evaluate(pkgcustomXmlDataStoragePartsconditionsxPaths);
        	if (result==false) {
        		return false;
        	}    		
    	}
    	return true;
    }
	public void listXPathsList<org.opendope.xpaths.Xpaths.XpaththeList
			Conditions conditions,
    	for (Evaluable particle : ) {
    		particle.listXPaths(theListconditionsxPaths);
    	}
	}

Map the IDs used in this condition to new values; useful for merging ConditionParts.

Parameters:
xpathIdMap
conditionIdMap
Since:
3.0.0
	public void mapIds(Map<StringStringxpathIdMapMap<StringStringconditionIdMap) {
    	for (Evaluable particle : ) {
    		particle.mapIds(xpathIdMapconditionIdMap);
    	}
	}
    
	public String toString(Conditions conditions,
		int i = 0;
		int total = .size();
    	for (Evaluable particle : ) {
    		sb.append(particle.toString(conditionsxPaths));
    		i++;
    		if (i<total) {
    			sb.append(" and ");
    		}
    	}
		return "(" + sb.toString() + ")";
	}
	public Condition repeat(String xpathBase,
			int index,
			Conditions conditions,
    	for (Evaluable particle : ) {
    		particle.repeat(xpathBaseindexconditionsxPaths);
    	}
		return null;
	}	
New to GrepCode? Check out our FAQ X