java.lang.Object
org.sejda.sambox.pdmodel.common.PDNameTreeNode<PDStructureElement>
org.sejda.sambox.pdmodel.PDStructureElementNameTreeNode
- All Implemented Interfaces:
COSObjectable
todo: JavaDoc
- Author:
- John Hewson
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprotected PDStructureElementconvertCOSToPD(COSBase base) Method to convert the COS value in the name tree to the PD Model object.protected PDNameTreeNode<PDStructureElement>Create a child node object.Methods inherited from class org.sejda.sambox.pdmodel.common.PDNameTreeNode
getCOSObject, getKids, getLowerLimit, getNames, getParent, getUpperLimit, getValue, isRootNode, setKids, setNames, setParent
-
Constructor Details
-
PDStructureElementNameTreeNode
public PDStructureElementNameTreeNode()Constructor. -
PDStructureElementNameTreeNode
Constructor.- Parameters:
dic- The COS dictionary.
-
-
Method Details
-
convertCOSToPD
Description copied from class:PDNameTreeNodeMethod to convert the COS value in the name tree to the PD Model object. The default implementation will simply return the given COSBase object. Subclasses should do something specific.- Specified by:
convertCOSToPDin classPDNameTreeNode<PDStructureElement>- Parameters:
base- The COS object to convert.- Returns:
- The converted PD Model object.
- Throws:
IOException- If there is an error during creation.
-
createChildNode
Description copied from class:PDNameTreeNodeCreate a child node object.- Specified by:
createChildNodein classPDNameTreeNode<PDStructureElement>- Parameters:
dic- The dictionary for the child node object to refer to.- Returns:
- The new child node object.
-