public abstract class PDStructureNode extends Object implements COSObjectable
Modifier | Constructor and Description |
---|---|
protected |
PDStructureNode(COSDictionary dictionary)
Constructor for an existing structure node.
|
protected |
PDStructureNode(String type)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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 Object |
createObject(COSBase kid)
Creates an object for a kid of this structure node.
|
COSDictionary |
getCOSObject()
Convert this standard java object to a COS object.
|
List<Object> |
getKids()
Returns a list of objects for the kids (K).
|
String |
getType()
Returns the type.
|
protected void |
insertBefore(COSBase newKid,
Object refKid)
Inserts an COS base kid before a reference kid.
|
void |
insertBefore(PDStructureElement newKid,
Object refKid)
Inserts a structure element kid before a reference kid.
|
protected void |
insertObjectableBefore(COSObjectable newKid,
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(List<Object> kids)
Sets the kids (K).
|
protected PDStructureNode(String type)
type
- the typeprotected PDStructureNode(COSDictionary dictionary)
dictionary
- The existing dictionary.public static PDStructureNode create(COSDictionary node)
node
- the node dictionarypublic COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public String getType()
public List<Object> getKids()
public 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, Object refKid)
newKid
- the structure elementrefKid
- the reference kidprotected void insertObjectableBefore(COSObjectable newKid, Object refKid)
newKid
- the objectablerefKid
- the reference kidprotected void insertBefore(COSBase newKid, Object refKid)
newKid
- the COS baserefKid
- the reference kidpublic boolean removeKid(PDStructureElement structureElement)
structureElement
- the structure elementtrue
if the kid was removed, false
otherwiseprotected boolean removeObjectableKid(COSObjectable objectable)
objectable
- the objectabletrue
if the kid was removed, false
otherwiseprotected boolean removeKid(COSBase object)
object
- the COS basetrue
if the kid was removed, false
otherwiseCopyright © 2002–2018 The Apache Software Foundation. All rights reserved.