Class DocumentUtil
java.lang.Object
pro.verron.officestamper.core.DocumentUtil
Utility class to retrieve elements from a document.
- Since:
- 1.4.7
- Version:
- ${version}
- Author:
- Joseph Verron, DallanMC
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleandepthElementSearch(Object searchTarget, Object searchTree) Recursively searches for an element in a content tree.static org.docx4j.wml.ContentAccessorfindSmallestCommonParent(Object o1, Object o2) Finds the smallest common parent between two objects.
-
Method Details
-
findSmallestCommonParent
Finds the smallest common parent between two objects.- Parameters:
o1- the first objecto2- the second object- Returns:
- the smallest common parent of the two objects
- Throws:
OfficeStamperException- if there is an error finding the common parent
-
depthElementSearch
-