Package org.opendope.conditions
Interface Evaluable
public interface Evaluable
-
Method Summary
Modifier and TypeMethodDescriptionbooleanevaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) 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.Build the XPath expression
-
Method Details
-
evaluate
boolean evaluate(WordprocessingMLPackage pkg, Map<String, CustomXmlPart> customXmlDataStorageParts, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) -
listXPaths
void listXPaths(List<Xpaths.Xpath> theList, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) List the XPaths used in this condition.- Parameters:
theList-conditions-xPaths-
-
toString
Build the XPath expression- Parameters:
conditions-xPaths-- Returns:
-
repeat
Condition repeat(String xpathBase, int index, Map<String, Condition> conditionsMap, Map<String, Xpaths.Xpath> xpathsMap) Create a condition for this instance of a repeat.- Parameters:
xpathBase-index-conditions-xPaths-- Returns:
-
mapIds
Map the IDs used in this condition to new values; useful for merging ConditionParts.- Parameters:
xpathIdMap-conditionIdMap-- Since:
- 3.0.0
-