|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.documentinterchange.logicalstructure.PDStructureNode
public abstract class PDStructureNode
A node in the structure tree.
Constructor Summary | |
---|---|
protected |
PDStructureNode(COSDictionary dictionary)
Constructor for an existing structure node. |
protected |
PDStructureNode(java.lang.String type)
Constructor. |
Method Summary | |
---|---|
protected void |
appendKid(COSBase object)
Appends a COS base kid. |
void |
appendKid(PDStructureElement structureElement)
Appends a structure element kid. |
protected void |
appendObjectableKid(COSObjectable objectable)
Appends an objectable kid. |
static PDStructureNode |
create(COSDictionary node)
Creates a node in the structure tree. |
protected java.lang.Object |
createObject(COSBase kid)
Creates an object for a kid of this structure node. |
protected COSDictionary |
getCOSDictionary()
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object. |
java.util.List<java.lang.Object> |
getKids()
Returns a list of objects for the kids (K). |
java.lang.String |
getType()
Returns the type. |
protected void |
insertBefore(COSBase newKid,
java.lang.Object refKid)
Inserts an COS base kid before a reference kid. |
void |
insertBefore(PDStructureElement newKid,
java.lang.Object refKid)
Inserts a structure element kid before a reference kid. |
protected void |
insertObjectableBefore(COSObjectable newKid,
java.lang.Object refKid)
Inserts an objectable kid before a reference kid. |
protected boolean |
removeKid(COSBase object)
Removes a COS base kid. |
boolean |
removeKid(PDStructureElement structureElement)
Removes a structure element kid. |
protected boolean |
removeObjectableKid(COSObjectable objectable)
Removes an objectable kid. |
void |
setKids(java.util.List<java.lang.Object> kids)
Sets the kids (K). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected PDStructureNode(java.lang.String type)
type
- the typeprotected PDStructureNode(COSDictionary dictionary)
dictionary
- The existing dictionary.Method Detail |
---|
public static PDStructureNode create(COSDictionary node)
node
- the node dictionary
protected COSDictionary getCOSDictionary()
public COSBase getCOSObject()
getCOSObject
in interface COSObjectable
public java.lang.String getType()
public java.util.List<java.lang.Object> getKids()
public void setKids(java.util.List<java.lang.Object> kids)
kids
- the kidspublic void appendKid(PDStructureElement structureElement)
structureElement
- the structure elementprotected void appendObjectableKid(COSObjectable objectable)
objectable
- the objectableprotected void appendKid(COSBase object)
object
- the COS basepublic void insertBefore(PDStructureElement newKid, java.lang.Object refKid)
newKid
- the structure elementrefKid
- the reference kidprotected void insertObjectableBefore(COSObjectable newKid, java.lang.Object refKid)
newKid
- the objectablerefKid
- the reference kidprotected void insertBefore(COSBase newKid, java.lang.Object refKid)
newKid
- the COS baserefKid
- the reference kidpublic boolean removeKid(PDStructureElement structureElement)
structureElement
- the structure element
true
if the kid was removed, false
otherwiseprotected boolean removeObjectableKid(COSObjectable objectable)
objectable
- the objectable
true
if the kid was removed, false
otherwiseprotected boolean removeKid(COSBase object)
object
- the COS base
true
if the kid was removed, false
otherwiseprotected java.lang.Object createObject(COSBase kid)
PDStructureElement
,PDAnnotation
,PDXObject
,PDMarkedContentReference
Integer
kid
- the kid
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |