Package org.docx4j.model.datastorage
Class OpenDoPEReverter.TopLevelSdtTemplateFinder
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.model.datastorage.OpenDoPEReverter.TopLevelSdtTemplateFinder
- All Implemented Interfaces:
TraversalUtil.Callback
- Enclosing class:
- OpenDoPEReverter
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Map<BigInteger,Object> private boolean(package private) Map<BigInteger,Object> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionVisits a node in pre order (before its children have been visited).voidsetInstanceCountOnly(boolean instanceCountOnly) booleanDecide whether this node's children should be traversed.Methods inherited from class org.docx4j.TraversalUtil.CallbackImpl
getChildren, walkJAXBElements
-
Field Details
-
instanceCountOnly
private boolean instanceCountOnly -
conditionSdtsByID
Map<BigInteger,Object> conditionSdtsByID -
repeatSdtsByID
Map<BigInteger,Object> repeatSdtsByID
-
-
Constructor Details
-
TopLevelSdtTemplateFinder
private TopLevelSdtTemplateFinder()
-
-
Method Details
-
setInstanceCountOnly
public void setInstanceCountOnly(boolean instanceCountOnly) -
apply
Description copied from class:TraversalUtil.CallbackImplVisits a node in pre order (before its children have been visited). A node is visited only if all its parents have been traversed (TraversalUtil.CallbackImpl.shouldTraverse(Object)).Implementations can have side effects.
- Specified by:
applyin interfaceTraversalUtil.Callback- Specified by:
applyin classTraversalUtil.CallbackImpl
-
shouldTraverse
Description copied from class:TraversalUtil.CallbackImplDecide whether this node's children should be traversed.- Specified by:
shouldTraversein interfaceTraversalUtil.Callback- Overrides:
shouldTraversein classTraversalUtil.CallbackImpl- Returns:
- whether the children of this node should be visited
-