Class AbstractMigrator
java.lang.Object
org.docx4j.model.datastorage.migration.AbstractMigrator
- Direct Known Subclasses:
AbstractMigratorUsingAnswersFormat
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringaddPropertiesPart(WordprocessingMLPackage pkgOut, Part customXmlDataStoragePart, String ns) protected ConditionsPartcreateConditionsPart(WordprocessingMLPackage pkgOut, Conditions conditions) protected voidcreateContentControl(RPr rPr, List<Object> replacementContent, String key, String xpath, String prefixmappings) create an SdtRun, and add it to replacementContentprotected voidcreateParts(WordprocessingMLPackage pkgOut) protected static SdtPrcreateSdtPr(String key, String xpath, String prefixmappings, String storeItemID, boolean isRepeat) protected SdtRuncreateSdtRun(RPr rPr, String key, String xpath, String prefixmappings) create an SdtRunprotected XPathsPartcreateXPathsPart(WordprocessingMLPackage pkgOut, Xpaths xpaths)
-
Field Details
-
xPathsPart
-
conditionsPart
-
storeItemID
-
-
Constructor Details
-
AbstractMigrator
public AbstractMigrator()
-
-
Method Details
-
createParts
- Throws:
InvalidFormatException
-
createConditionsPart
protected ConditionsPart createConditionsPart(WordprocessingMLPackage pkgOut, Conditions conditions) throws InvalidFormatException - Throws:
InvalidFormatException
-
createXPathsPart
protected XPathsPart createXPathsPart(WordprocessingMLPackage pkgOut, Xpaths xpaths) throws InvalidFormatException - Throws:
InvalidFormatException
-
addPropertiesPart
protected String addPropertiesPart(WordprocessingMLPackage pkgOut, Part customXmlDataStoragePart, String ns) throws InvalidFormatException - Throws:
InvalidFormatException
-
createContentControl
protected void createContentControl(RPr rPr, List<Object> replacementContent, String key, String xpath, String prefixmappings) create an SdtRun, and add it to replacementContent- Parameters:
r-replacementContent-key-
-
createSdtRun
create an SdtRun- Parameters:
r-key-
-
createSdtPr
-