org.opendope.conditions.Evaluable Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of docx4j Show documentation
Show all versions of docx4j Show documentation
docx4j is a library which helps you to work with the Office Open
XML file format as used in docx
documents, pptx presentations, and xlsx spreadsheets.
package org.opendope.conditions;
import java.util.List;
import java.util.Map;
import org.docx4j.openpackaging.packages.WordprocessingMLPackage;
import org.docx4j.openpackaging.parts.CustomXmlPart;
public interface Evaluable {
public boolean evaluate(WordprocessingMLPackage pkg,
Map customXmlDataStorageParts,
Map conditionsMap,
Map xpathsMap);
/**
* List the XPaths used in this condition.
* @param theList
* @param conditions
* @param xPaths
*/
public void listXPaths( List theList,
Map conditionsMap,
Map xpathsMap);
/**
* Build the XPath expression
* @param conditions
* @param xPaths
* @return
*/
public String toString(Map conditionsMap,
Map xpathsMap);
/**
* Create a condition for this instance of a repeat.
*
* @param xpathBase
* @param index
* @param conditions
* @param xPaths
* @return
*/
public Condition repeat(String xpathBase,
int index,
Map conditionsMap,
Map xpathsMap);
/**
* Map the IDs used in this condition to new values; useful for merging ConditionParts.
*
* @param xpathIdMap
* @param conditionIdMap
* @since 3.0.0
*/
public void mapIds(Map xpathIdMap, Map conditionIdMap);
}