org.apache.pdfbox.pdmodel.common
public class PDNameTreeNode extends java.lang.Object implements COSObjectable
| Constructor and Description |
|---|
PDNameTreeNode(java.lang.Class valueClass)
Constructor.
|
PDNameTreeNode(COSDictionary dict,
java.lang.Class valueClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.Object |
convertCOSToPD(COSBase base)
Method to convert the COS value in the name tree to the PD Model object.
|
protected PDNameTreeNode |
createChildNode(COSDictionary dic)
Create a child node object.
|
COSDictionary |
getCOSDictionary()
Convert this standard java object to a COS object.
|
COSBase |
getCOSObject()
Convert this standard java object to a COS object.
|
java.util.List |
getKids()
Return the children of this node.
|
java.lang.String |
getLowerLimit()
Get the lowest value for a key in the name map.
|
java.util.Map<java.lang.String,java.lang.Object> |
getNames()
This will return a map of names.
|
java.lang.String |
getUpperLimit()
Get the highest value for a key in the name map.
|
java.lang.Object |
getValue(java.lang.String name)
The name to retrieve.
|
void |
setKids(java.util.List kids)
Set the children of this named tree.
|
void |
setNames(java.util.Map<java.lang.String,? extends COSObjectable> names)
Set the names of for this node.
|
public PDNameTreeNode(java.lang.Class valueClass)
valueClass - The PD Model type of object that is the value.public PDNameTreeNode(COSDictionary dict, java.lang.Class valueClass)
dict - The dictionary that holds the name information.valueClass - The PD Model type of object that is the value.public COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic COSDictionary getCOSDictionary()
public java.util.List getKids()
public void setKids(java.util.List kids)
kids - The children of this named tree.public java.lang.Object getValue(java.lang.String name)
throws java.io.IOException
name - The name in the tree.java.io.IOException - If an there is a problem creating the destinations.public java.util.Map<java.lang.String,java.lang.Object> getNames()
throws java.io.IOException
null if dictionary
contains no 'Names' entryjava.io.IOException - If there is an error while creating the sub types.protected java.lang.Object convertCOSToPD(COSBase base) throws java.io.IOException
base - The COS object to convert.java.io.IOException - If there is an error during creation.protected PDNameTreeNode createChildNode(COSDictionary dic)
dic - The dictionary for the child node object to refer to.public void setNames(java.util.Map<java.lang.String,? extends COSObjectable> names)
names - map of names to objects, or nullpublic java.lang.String getUpperLimit()
public java.lang.String getLowerLimit()