Package org.opendope.conditions
Class Condition
java.lang.Object
org.opendope.conditions.Condition
- All Implemented Interfaces:
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) Gets the value of the comments property.Gets the value of the description property.getId()Gets the value of the id property.getName()Gets the value of the name property.Gets the value of the particle property.Gets the value of the source property.voidlistXPaths(List<Xpaths.Xpath> theList, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) List the XPaths used in this condition.voidMap the IDs used in this condition to new values; useful for merging ConditionParts.repeat(String xpathBase, int index, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) Create a condition for this instance of a repeat.voidsetComments(String value) Sets the value of the comments property.voidsetDescription(String value) Sets the value of the description property.voidsetDomToXPathMap(DomToXPathMap domToXPathMap) voidSets the value of the id property.voidSets the value of the name property.voidsetParticle(Evaluable value) Sets the value of the particle property.voidSets the value of the source property.Build the XPath expression
-
Field Details
-
particle
-
id
-
name
-
description
-
comments
-
source
-
-
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, Map<String, CustomXmlPart> customXmlDataStorageParts, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) -
setDomToXPathMap
-
listXPaths
public void listXPaths(List<Xpaths.Xpath> theList, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) Description copied from interface:EvaluableList the XPaths used in this condition.- Specified by:
listXPathsin interfaceEvaluable
-
mapIds
Map the IDs used in this condition to new values; useful for merging ConditionParts. -
toString
Description copied from interface:EvaluableBuild the XPath expression -
repeat
public Condition repeat(String xpathBase, int index, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) Description copied from interface:EvaluableCreate a condition for this instance of a repeat. -
getId
Gets the value of the id property.- Returns:
- possible object is
String
-
setId
Sets the value of the id property.- Parameters:
value- allowed object isString
-
getName
Gets the value of the name property.- Returns:
- possible object is
String
-
setName
Sets the value of the name property.- Parameters:
value- allowed object isString
-
getDescription
Gets the value of the description property.- Returns:
- possible object is
String
-
setDescription
Sets the value of the description property.- Parameters:
value- allowed object isString
-
getComments
Gets the value of the comments property.- Returns:
- possible object is
String
-
setComments
Sets the value of the comments property.- Parameters:
value- allowed object isString
-
getSource
Gets the value of the source property.- Returns:
- possible object is
String
-
setSource
Sets the value of the source property.- Parameters:
value- allowed object isString
-