public class PDStructureTreeRoot extends PDStructureNode
Constructor and Description |
---|
PDStructureTreeRoot()
Default Constructor.
|
PDStructureTreeRoot(COSDictionary dic)
Constructor for an existing structure element.
|
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getClassMap()
Sets the ClassMap.
|
PDNameTreeNode<PDStructureElement> |
getIDTree()
Returns the ID tree.
|
COSBase |
getK()
Returns the K entry.
|
PDNumberTreeNode |
getParentTree()
Returns the parent tree.
|
int |
getParentTreeNextKey()
Returns The next key for the parent tree.
|
Map<String,Object> |
getRoleMap()
Returns the role map.
|
void |
setClassMap(Map<String,Object> classMap)
Sets the ClassMap.
|
void |
setIDTree(PDNameTreeNode<PDStructureElement> idTree)
Sets the ID tree.
|
void |
setK(COSBase k)
Sets the K entry.
|
void |
setParentTree(PDNumberTreeNode parentTree)
Sets the parent tree.
|
void |
setParentTreeNextKey(int parentTreeNextkey)
Sets the next key in the parent tree.
|
void |
setRoleMap(Map<String,String> roleMap)
Sets the role map.
|
appendKid, appendKid, appendObjectableKid, create, createObject, getCOSObject, getKids, getType, insertBefore, insertBefore, insertObjectableBefore, removeKid, removeKid, removeObjectableKid, setKids
public PDStructureTreeRoot()
public PDStructureTreeRoot(COSDictionary dic)
dic
- The existing dictionary.public COSBase getK()
PDStructureNode.getKids()
instead.public void setK(COSBase k)
k
- the K valuepublic PDNameTreeNode<PDStructureElement> getIDTree()
public void setIDTree(PDNameTreeNode<PDStructureElement> idTree)
idTree
- the ID treepublic PDNumberTreeNode getParentTree()
The keys correspond to a single page of the document or to an individual object, e.g. an annotation or an XObject, which have a /StructParent or /StructParents entry.
The values of type PDParentTreeValue
are either a dictionary or an array. It's a
dictionary for individual objects like an annotation or an XObject, and an array for a page
object or a content stream containing marked-content sequences identified by an MCID.
public void setParentTree(PDNumberTreeNode parentTree)
The keys correspond to a single page of the document or to an individual object, e.g. an annotation or an XObject, which have a /StructParent or /StructParents entry.
The values of type PDParentTreeValue
are either a dictionary or an array. It's a
dictionary for individual objects like an annotation or an XObject, and an array for a page
object or a content stream containing marked-content sequences identified by an MCID.
To create an empty parent tree, call new PDNumberTreeNode(PDParentTreeValue.class)
.
parentTree
- the parent treepublic int getParentTreeNextKey()
public void setParentTreeNextKey(int parentTreeNextkey)
parentTreeNextkey
- The next key in the parent tree.public void setRoleMap(Map<String,String> roleMap)
roleMap
- the role mappublic Map<String,Object> getClassMap()
PDAttributeObject
or lists
of it.public void setClassMap(Map<String,Object> classMap)
classMap
- null, or a map whose elements are either PDAttributeObject
or lists
of it.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.