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>
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
comments |
protected java.lang.String |
description |
protected java.lang.String |
id |
protected java.lang.String |
name |
protected Evaluable |
particle |
protected java.lang.String |
source |
| Constructor and Description |
|---|
Condition() |
| Modifier and Type | Method and Description |
|---|---|
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) |
java.lang.String |
getComments()
Gets the value of the comments property.
|
java.lang.String |
getDescription()
Gets the value of the description property.
|
java.lang.String |
getId()
Gets the value of the id property.
|
java.lang.String |
getName()
Gets the value of the name property.
|
Evaluable |
getParticle()
Gets the value of the particle property.
|
java.lang.String |
getSource()
Gets the value of the source property.
|
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)
List the XPaths used in this condition.
|
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.
|
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)
Create a condition for this instance of a repeat.
|
void |
setComments(java.lang.String value)
Sets the value of the comments property.
|
void |
setDescription(java.lang.String value)
Sets the value of the description property.
|
void |
setDomToXPathMap(DomToXPathMap domToXPathMap) |
void |
setId(java.lang.String value)
Sets the value of the id property.
|
void |
setName(java.lang.String value)
Sets the value of the name property.
|
void |
setParticle(Evaluable value)
Sets the value of the particle property.
|
void |
setSource(java.lang.String value)
Sets the value of the source property.
|
java.lang.String |
toString(java.util.Map<java.lang.String,Condition> conditionsMap,
java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)
Build the XPath expression
|
protected Evaluable particle
protected java.lang.String id
protected java.lang.String name
protected java.lang.String description
protected java.lang.String comments
protected java.lang.String source
public Evaluable getParticle()
public void setParticle(Evaluable value)
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)
public void setDomToXPathMap(DomToXPathMap domToXPathMap)
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)
EvaluablelistXPaths in interface Evaluablepublic void mapIds(java.util.Map<java.lang.String,java.lang.String> xpathIdMap,
java.util.Map<java.lang.String,java.lang.String> conditionIdMap)
public java.lang.String toString(java.util.Map<java.lang.String,Condition> conditionsMap, java.util.Map<java.lang.String,Xpaths.Xpath> xpathsMap)
Evaluablepublic 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)
Evaluablepublic java.lang.String getId()
Stringpublic void setId(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getName()
Stringpublic void setName(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getDescription()
Stringpublic void setDescription(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getComments()
Stringpublic void setComments(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getSource()
Stringpublic void setSource(java.lang.String value)
value - allowed object is
StringCopyright © 2007–2023. All rights reserved.