Class Condition

java.lang.Object
org.opendope.conditions.Condition
All Implemented Interfaces:
Evaluable

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>
 
  • Field Details

    • particle

      protected Evaluable particle
    • id

      protected String id
    • name

      protected String name
    • description

      protected String description
    • comments

      protected String comments
    • source

      protected String source
  • Constructor Details

    • Condition

      public Condition()
  • Method Details

    • getParticle

      public Evaluable getParticle()
      Gets the value of the particle property.
      Returns:
      possible object is Xpathref And Or Not
    • setParticle

      public void setParticle(Evaluable value)
      Sets the value of the particle property.
      Parameters:
      value - allowed object is Xpathref And Or Not
    • evaluate

      public boolean evaluate(WordprocessingMLPackage pkg, Map<String,CustomXmlPart> customXmlDataStorageParts, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
      Specified by:
      evaluate in interface Evaluable
    • setDomToXPathMap

      public void setDomToXPathMap(DomToXPathMap domToXPathMap)
    • listXPaths

      public void listXPaths(List<Xpaths.Xpath> theList, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
      Description copied from interface: Evaluable
      List the XPaths used in this condition.
      Specified by:
      listXPaths in interface Evaluable
    • mapIds

      public void mapIds(Map<String,String> xpathIdMap, Map<String,String> conditionIdMap)
      Map the IDs used in this condition to new values; useful for merging ConditionParts.
      Specified by:
      mapIds in interface Evaluable
      Parameters:
      xpathIdMap -
      conditionIdMap -
      Since:
      3.0.0
    • toString

      public String toString(Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
      Description copied from interface: Evaluable
      Build the XPath expression
      Specified by:
      toString in interface Evaluable
      Returns:
    • repeat

      public Condition repeat(String xpathBase, int index, Map<String,Condition> conditionsMap, Map<String,Xpaths.Xpath> xpathsMap)
      Description copied from interface: Evaluable
      Create a condition for this instance of a repeat.
      Specified by:
      repeat in interface Evaluable
      Returns:
    • getId

      public String getId()
      Gets the value of the id property.
      Returns:
      possible object is String
    • setId

      public void setId(String value)
      Sets the value of the id property.
      Parameters:
      value - allowed object is String
    • getName

      public String getName()
      Gets the value of the name property.
      Returns:
      possible object is String
    • setName

      public void setName(String value)
      Sets the value of the name property.
      Parameters:
      value - allowed object is String
    • getDescription

      public String getDescription()
      Gets the value of the description property.
      Returns:
      possible object is String
    • setDescription

      public void setDescription(String value)
      Sets the value of the description property.
      Parameters:
      value - allowed object is String
    • getComments

      public String getComments()
      Gets the value of the comments property.
      Returns:
      possible object is String
    • setComments

      public void setComments(String value)
      Sets the value of the comments property.
      Parameters:
      value - allowed object is String
    • getSource

      public String getSource()
      Gets the value of the source property.
      Returns:
      possible object is String
    • setSource

      public void setSource(String value)
      Sets the value of the source property.
      Parameters:
      value - allowed object is String