| Modifier and Type | Field and Description |
|---|---|
| private static final Log | LOG
Log instance. |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | PDStructureTreeRoot(COSDictionary
The existing dictionary. dic)Constructor for an existing structure element. |
| Modifier and Type | Method and Description |
|---|---|
| public Map | Returns: the ClassMap, never null. The elements are eitherPDAttributeObject or lists
of it.Sets the ClassMap. |
| public PDNameTreeNode | |
| public COSBase | |
| public PDNumberTreeNode | |
| public int | Returns: The next key for the parent treeReturns The next key for the parent tree. |
| public Map | |
| public void | setClassMap(Map<String, Object>
null, or a map whose elements are either classMap)PDAttributeObject or lists
of it.Sets the ClassMap. |
| public void | |
| public void | |
| public void | |
| public void | setParentTreeNextKey(int
The next key in the parent tree. parentTreeNextkey)Sets the next key in the parent tree. |
| public void |
| LOG | back to summary |
|---|---|
| private static final Log LOG Log instance. | |
| TYPE | back to summary |
|---|---|
| private static final String TYPE | |
| PDStructureTreeRoot | back to summary |
|---|---|
| public PDStructureTreeRoot() Default Constructor. | |
| PDStructureTreeRoot | back to summary |
|---|---|
| public PDStructureTreeRoot(COSDictionary dic) Constructor for an existing structure element.
| |
| getClassMap | back to summary |
|---|---|
| public Map Sets the ClassMap.
| |
| getIDTree | back to summary |
|---|---|
| public PDNameTreeNode Returns the ID tree.
| |
| getK | back to summary |
|---|---|
| public COSBase getK() Returns the K entry. This can be a dictionary representing a structure element, or an array
of them. To get it as a list of PDStructureElement objects, use
| |
| getParentTree | back to summary |
|---|---|
| public PDNumberTreeNode getParentTree() Returns the parent tree. 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
| |
| getParentTreeNextKey | back to summary |
|---|---|
| public int getParentTreeNextKey() Returns The next key for the parent tree. This is a number greater than any existing key, and which shall be used for the next entry to be added to the tree.
| |
| getRoleMap | back to summary |
|---|---|
| public Map Returns the role map. | |
| setClassMap | back to summary |
|---|---|
| public void setClassMap(Map<String, Object> classMap) Sets the ClassMap.
| |
| setIDTree | back to summary |
|---|---|
| public void setIDTree(PDNameTreeNode<PDStructureElement> idTree) Sets the ID tree.
| |
| setK | back to summary |
|---|---|
| public void setK(COSBase k) Sets the K entry.
| |
| setParentTree | back to summary |
|---|---|
| public void setParentTree(PDNumberTreeNode parentTree) Sets the parent tree. 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
To create an empty parent tree, call
| |
| setParentTreeNextKey | back to summary |
|---|---|
| public void setParentTreeNextKey(int parentTreeNextkey) Sets the next key in the parent tree. This is a number greater than any existing key, and which shall be used for the next entry to be added to the tree.
| |
| setRoleMap | back to summary |
|---|---|
| public void setRoleMap(Map<String, String> roleMap) Sets the role map. | |