Package org.docx4j.anon
Class DmlVmlAnalyzer
java.lang.Object
org.docx4j.TraversalUtil.CallbackImpl
org.docx4j.anon.DmlVmlAnalyzer
- All Implemented Interfaces:
TraversalUtil.Callback
This will detect DrawingML or VML which does anything more than
link to a safe image (ie one we've replaced)
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) booleanObjects it is interesting to note are presentprivate static org.slf4j.Loggerprivate JaxbXmlPartObjects we might not anonymise -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidVisits a node in pre order (before its children have been visited).getChildren(Object o2) private voidhandleCTNonVisualDrawingProps(CTNonVisualDrawingProps drawingProps, List<Object> artificialList) There can be hyperlinks references in CTNonVisualDrawingProps.handleGraphicData(GraphicData graphicData) voidreinit()voidbooleanDecide whether this node's children should be traversed.Methods inherited from class org.docx4j.TraversalUtil.CallbackImpl
walkJAXBElements
-
Field Details
-
log
private static org.slf4j.Logger log -
sourcePart
-
unsafeObjects
Objects we might not anonymise -
inventoryObjects
Objects it is interesting to note are present -
fieldsPresent
-
containsVML
boolean containsVML
-
-
Constructor Details
-
DmlVmlAnalyzer
public DmlVmlAnalyzer()
-
-
Method Details
-
setPart
-
reinit
public void reinit() -
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
-
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
-
getChildren
- Specified by:
getChildrenin interfaceTraversalUtil.Callback- Overrides:
getChildrenin classTraversalUtil.CallbackImpl
-
handleGraphicData
-
addUnsafe
-
handleCTNonVisualDrawingProps
private void handleCTNonVisualDrawingProps(CTNonVisualDrawingProps drawingProps, List<Object> artificialList) There can be hyperlinks references in CTNonVisualDrawingProps.- Parameters:
drawingProps-artificialList-
-