Package org.docx4j.samples
Class ContentControlsInfoParts
java.lang.Object
org.docx4j.samples.AbstractSample
org.docx4j.samples.ContentControlsInfoParts
This sample is similar to PartsList, but
it provides info specific to your CustomXML parts.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThis HashMap is intended to prevent loops.private static org.slf4j.LoggerFields inherited from class org.docx4j.samples.AbstractSample
inputfilepath, outputfilepath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidapproach2(OpcPackage pkg, StringBuilder sb) static voidstatic voidprintInfo(Part p, StringBuilder sb, String indent) static voidtraverseRelationships(OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) Methods inherited from class org.docx4j.samples.AbstractSample
getInputFilePath, getOutputFilePath
-
Field Details
-
log
private static org.slf4j.Logger log -
handled
This HashMap is intended to prevent loops.
-
-
Constructor Details
-
ContentControlsInfoParts
public ContentControlsInfoParts()
-
-
Method Details
-
main
- Parameters:
args-- Throws:
Exception
-
printInfo
- Throws:
Docx4JException
-
traverseRelationships
public static void traverseRelationships(OpcPackage wordMLPackage, RelationshipsPart rp, StringBuilder sb, String indent) throws Docx4JException - Throws:
Docx4JException
-
approach2
-