Class PDStructureTreeRoot
java.lang.Object
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureNode
org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureTreeRoot
- All Implemented Interfaces:
COSObjectable
A root of a structure tree.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault Constructor.Constructor for an existing structure element. -
Method Summary
Modifier and TypeMethodDescriptionSets the ClassMap.Returns the ID tree.getK()Returns the K entry.Returns the parent tree.intReturns the next key in the parent tree.Returns the role map.voidsetClassMap(Map<String, Object> classMap) Sets the ClassMap.voidsetIDTree(PDNameTreeNode<PDStructureElement> idTree) Sets the ID tree.voidSets the K entry.voidsetParentTree(PDNumberTreeNode parentTree) Sets the parent tree.voidsetParentTreeNextKey(int parentTreeNextkey) Sets the next key in the parent tree.voidsetRoleMap(Map<String, String> roleMap) Sets the role map.Methods inherited from class org.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureNode
appendKid, appendKid, appendObjectableKid, create, createObject, getCOSObject, getKids, getType, insertBefore, insertBefore, insertObjectableBefore, removeKid, removeKid, removeObjectableKid, setKids
-
Field Details
-
LOG
private static final org.apache.commons.logging.Log LOGLog instance. -
TYPE
- See Also:
-
-
Constructor Details
-
PDStructureTreeRoot
public PDStructureTreeRoot()Default Constructor. -
PDStructureTreeRoot
Constructor for an existing structure element.- Parameters:
dic- The existing dictionary.
-
-
Method Details
-
getK
Returns the K entry. This can be a dictionary representing a structure element, or an array of them.- Returns:
- the K entry.
-
setK
Sets the K entry.- Parameters:
k- the K value
-
getIDTree
Returns the ID tree.- Returns:
- the ID tree
-
setIDTree
Sets the ID tree.- Parameters:
idTree- the ID tree
-
getParentTree
Returns the parent tree.- Returns:
- the parent tree
-
setParentTree
Sets the parent tree.- Parameters:
parentTree- the parent tree
-
getParentTreeNextKey
public int getParentTreeNextKey()Returns the next key in the parent tree.- Returns:
- the next key in the parent tree
-
setParentTreeNextKey
public void setParentTreeNextKey(int parentTreeNextkey) Sets the next key in the parent tree.- Parameters:
parentTreeNextkey- the next key in the parent tree.
-
getRoleMap
Returns the role map.- Returns:
- the role map
-
setRoleMap
Sets the role map.- Parameters:
roleMap- the role map
-
getClassMap
Sets the ClassMap.- Returns:
- the ClassMap, never null. The elements are either
PDAttributeObjector lists of it.
-
setClassMap
Sets the ClassMap.- Parameters:
classMap- null, or a map whose elements are eitherPDAttributeObjector lists of it.
-