public class And extends 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>
| Modifier and Type | Field and Description |
|---|---|
protected List<Evaluable> |
xpathrefOrAndOrOr |
| Constructor and Description |
|---|
And() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(WordprocessingMLPackage pkg,
Map<String,CustomXmlPart> customXmlDataStorageParts,
Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap) |
List<Evaluable> |
getXpathrefOrAndOrOr()
Gets the value of the xpathrefOrAndOrOr property.
|
void |
listXPaths(List<Xpaths.Xpath> theList,
Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap)
List the XPaths used in this condition.
|
void |
mapIds(Map<String,String> xpathIdMap,
Map<String,String> conditionIdMap)
Map the IDs used in this condition to new values; useful for merging ConditionParts.
|
Condition |
repeat(String xpathBase,
int index,
Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap)
Create a condition for this instance of a repeat.
|
String |
toString(Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap)
Build the XPath expression
|
public List<Evaluable> getXpathrefOrAndOrOr()
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
And
Xpathref
Not
Or
Conditionref
public boolean evaluate(WordprocessingMLPackage pkg, Map<String,CustomXmlPart> customXmlDataStorageParts, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
public void listXPaths(List<Xpaths.Xpath> theList, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
EvaluablelistXPaths in interface Evaluablepublic void mapIds(Map<String,String> xpathIdMap, Map<String,String> conditionIdMap)
public String toString(Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
EvaluableCopyright © 2007-2022. All Rights Reserved.