Package org.opendope.conditions
Class Or
java.lang.Object
org.opendope.conditions.Or
- All Implemented Interfaces:
Evaluable
public class Or extends java.lang.Object implements Evaluable
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>
-
Field Summary
Fields Modifier and Type Field Description protected java.util.List<Evaluable>xpathrefOrAndOrOr -
Constructor Summary
Constructors Constructor Description Or() -
Method Summary
Modifier and Type Method Description booleanevaluate(WordprocessingMLPackage pkg, java.util.Map<java.lang.String,CustomXmlPart> customXmlDataStorageParts, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)java.util.List<Evaluable>getXpathrefOrAndOrOr()Gets the value of the xpathrefOrAndOrOr property.voidlistXPaths(java.util.List<Xpaths.Xpath> theList, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)List the XPaths used in this condition.voidmapIds(java.util.Map<java.lang.String,java.lang.String> xpathIdMap, java.util.Map<java.lang.String,java.lang.String> conditionIdMap)Map the IDs used in this condition to new values; useful for merging ConditionParts.Conditionrepeat(java.lang.String xpathBase, int index, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)Create a condition for this instance of a repeat.java.lang.StringtoString(java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)Build the XPath expression
-
Field Details
-
Constructor Details
-
Or
public Or()
-
-
Method Details
-
getXpathrefOrAndOrOr
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
setmethod 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
AndXpathrefJAXBElement<Object>NotOrJAXBElement<Object>Conditionref -
evaluate
public boolean evaluate(WordprocessingMLPackage pkg, java.util.Map<java.lang.String,CustomXmlPart> customXmlDataStorageParts, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap) -
listXPaths
public void listXPaths(java.util.List<Xpaths.Xpath> theList, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)Description copied from interface:EvaluableList the XPaths used in this condition.- Specified by:
listXPathsin interfaceEvaluable
-
mapIds
public void mapIds(java.util.Map<java.lang.String,java.lang.String> xpathIdMap, java.util.Map<java.lang.String,java.lang.String> conditionIdMap)Map the IDs used in this condition to new values; useful for merging ConditionParts. -
toString
public java.lang.String toString(java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)Description copied from interface:EvaluableBuild the XPath expression -
repeat
public Condition repeat(java.lang.String xpathBase, int index, java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)Description copied from interface:EvaluableCreate a condition for this instance of a repeat.
-