public class STree
extends java.lang.Object
| Constructor and Description |
|---|
STree(Obj struct_dict)
Initialize a STree using an existing low-level Cos/SDF object.
|
| Modifier and Type | Method and Description |
|---|---|
static STree |
__Create(long impl,
java.lang.Object ref)
__ create.
|
ClassMap |
getClassMap()
Get the class map.
|
SElement |
getElement(byte[] id_buf)
Get the element with give ID
|
SElement |
getElement(java.lang.String id)
Get the element with given id
|
SElement |
getKid(int index)
Get the kid at given index
|
int |
getNumKids()
Get the number of kids of the structure tree root.
|
RoleMap |
getRoleMap()
Get the role map.
|
Obj |
getSDFObj()
Get the SDFObj.
|
boolean |
isValid()
Checks if STree is valid.
|
public STree(Obj struct_dict)
struct_dict - - a low-level (SDF/Cos) dictionary representing the .public boolean isValid()
throws PDFNetException
PDFNetExceptionpublic int getNumKids()
throws PDFNetException
PDFNetExceptionpublic SElement getKid(int index) throws PDFNetException
index - The index of the kid to obtain.PDFNetExceptionpublic SElement getElement(java.lang.String id) throws PDFNetException
id - the input Element IDPDFNetExceptionpublic SElement getElement(byte[] id_buf) throws PDFNetException
id_buf - buffer containing the ID to search forPDFNetExceptionpublic RoleMap getRoleMap() throws PDFNetException
PDFNetExceptionpublic ClassMap getClassMap() throws PDFNetException
PDFNetExceptionpublic Obj getSDFObj() throws PDFNetException
PDFNetExceptionpublic static STree __Create(long impl, java.lang.Object ref)
impl - the implref - the ref