public class Condition 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">
<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>
| Modifier and Type | Field and Description |
|---|---|
protected String |
comments |
protected String |
description |
protected String |
id |
protected String |
name |
protected Evaluable |
particle |
protected String |
source |
| Constructor and Description |
|---|
Condition() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(WordprocessingMLPackage pkg,
Map<String,CustomXmlPart> customXmlDataStorageParts,
Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap) |
String |
getComments()
Gets the value of the comments property.
|
String |
getDescription()
Gets the value of the description property.
|
String |
getId()
Gets the value of the id property.
|
String |
getName()
Gets the value of the name property.
|
Evaluable |
getParticle()
Gets the value of the particle property.
|
String |
getSource()
Gets the value of the source 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.
|
void |
setComments(String value)
Sets the value of the comments property.
|
void |
setDescription(String value)
Sets the value of the description property.
|
void |
setDomToXPathMap(DomToXPathMap domToXPathMap) |
void |
setId(String value)
Sets the value of the id property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setParticle(Evaluable value)
Sets the value of the particle property.
|
void |
setSource(String value)
Sets the value of the source property.
|
String |
toString(Map<String,Condition> conditionsMap,
Map<String,Xpaths.Xpath> xpathsMap)
Build the XPath expression
|
protected Evaluable particle
protected String id
protected String name
protected String description
protected String comments
protected String source
public Evaluable getParticle()
public void setParticle(Evaluable value)
public boolean evaluate(WordprocessingMLPackage pkg, Map<String,CustomXmlPart> customXmlDataStorageParts, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
public void setDomToXPathMap(DomToXPathMap domToXPathMap)
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)
Evaluablepublic Condition repeat(String xpathBase, int index, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
Evaluablepublic void setId(String value)
value - allowed object is
Stringpublic String getName()
Stringpublic void setName(String value)
value - allowed object is
Stringpublic String getDescription()
Stringpublic void setDescription(String value)
value - allowed object is
Stringpublic String getComments()
Stringpublic void setComments(String value)
value - allowed object is
Stringpublic String getSource()
StringCopyright © 2007-2022. All Rights Reserved.