Package org.opendope.conditions
Class Condition
java.lang.Object
org.opendope.conditions.Condition
- All Implemented Interfaces:
Evaluable
public class Condition 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">
<choice>
<element ref="{http://opendope.org/conditions}xpathref"/>
<element ref="{http://opendope.org/conditions}and"/>
<element ref="{http://opendope.org/conditions}or"/>
<element ref="{http://opendope.org/conditions}not"/>
</choice>
<attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" />
<attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="comments" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="source" type="{http://www.w3.org/2001/XMLSchema}string" />
</restriction>
</complexContent>
</complexType>
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Condition() -
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.lang.StringgetComments()Gets the value of the comments property.java.lang.StringgetDescription()Gets the value of the description property.java.lang.StringgetId()Gets the value of the id property.java.lang.StringgetName()Gets the value of the name property.EvaluablegetParticle()Gets the value of the particle property.java.lang.StringgetSource()Gets the value of the source 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.voidsetComments(java.lang.String value)Sets the value of the comments property.voidsetDescription(java.lang.String value)Sets the value of the description property.voidsetDomToXPathMap(DomToXPathMap domToXPathMap)voidsetId(java.lang.String value)Sets the value of the id property.voidsetName(java.lang.String value)Sets the value of the name property.voidsetParticle(Evaluable value)Sets the value of the particle property.voidsetSource(java.lang.String value)Sets the value of the source property.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
-
Condition
public Condition()
-
-
Method Details
-
getParticle
Gets the value of the particle property. -
setParticle
Sets the value of the particle property. -
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) -
setDomToXPathMap
-
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. -
getId
public java.lang.String getId()Gets the value of the id property.- Returns:
- possible object is
String
-
setId
public void setId(java.lang.String value)Sets the value of the id property.- Parameters:
value- allowed object isString
-
getName
public java.lang.String getName()Gets the value of the name property.- Returns:
- possible object is
String
-
setName
public void setName(java.lang.String value)Sets the value of the name property.- Parameters:
value- allowed object isString
-
getDescription
public java.lang.String getDescription()Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
public void setDescription(java.lang.String value)Sets the value of the description property.- Parameters:
value- allowed object isString
-
getComments
public java.lang.String getComments()Gets the value of the comments property.- Returns:
- possible object is
String
-
setComments
public void setComments(java.lang.String value)Sets the value of the comments property.- Parameters:
value- allowed object isString
-
getSource
public java.lang.String getSource()Gets the value of the source property.- Returns:
- possible object is
String
-
setSource
public void setSource(java.lang.String value)Sets the value of the source property.- Parameters:
value- allowed object isString
-