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)
Note: This constructor does not copy any data, but is instead the logical equivalent of a type cast.
struct_dict
- - a low-level (SDF/Cos) dictionary representing the .public boolean isValid() throws PDFNetException
PDFNetException
public int getNumKids() throws PDFNetException
PDFNetException
public SElement getKid(int index) throws PDFNetException
index
- The index of the kid to obtain.PDFNetException
public SElement getElement(java.lang.String id) throws PDFNetException
id
- the input Element IDPDFNetException
public SElement getElement(byte[] id_buf) throws PDFNetException
id_buf
- buffer containing the ID to search forPDFNetException
public RoleMap getRoleMap() throws PDFNetException
PDFNetException
public ClassMap getClassMap() throws PDFNetException
PDFNetException
public Obj getSDFObj() throws PDFNetException
PDFNetException
public static STree __Create(long impl, java.lang.Object ref)
impl
- the implref
- the ref