|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.pdfbox.pdmodel.common.PDNameTreeNode
public class PDNameTreeNode
This class represents a PDF Name tree. See the PDF Reference 1.5 section 3.8.5 for more details.
| Constructor Summary | |
|---|---|
PDNameTreeNode(Class<? extends COSObjectable> valueClass)
Constructor. |
|
PDNameTreeNode(COSDictionary dict,
Class<? extends COSObjectable> valueClass)
Constructor. |
|
| Method Summary | |
|---|---|
protected COSObjectable |
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. |
List<PDNameTreeNode> |
getKids()
Return the children of this node. |
String |
getLowerLimit()
Get the lowest value for a key in the name map. |
Map<String,COSObjectable> |
getNames()
This will return a map of names. |
PDNameTreeNode |
getParent()
Returns the parent node. |
String |
getUpperLimit()
Get the highest value for a key in the name map. |
Object |
getValue(String name)
The name to retrieve. |
boolean |
isRootNode()
Determines if this is a root node or not. |
void |
setKids(List<? extends PDNameTreeNode> kids)
Set the children of this named tree. |
void |
setNames(Map<String,? extends COSObjectable> names)
Set the names of for this node. |
void |
setParent(PDNameTreeNode parentNode)
Sets the parent to the given node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PDNameTreeNode(Class<? extends COSObjectable> valueClass)
valueClass - The PD Model type of object that is the value.
public PDNameTreeNode(COSDictionary dict,
Class<? extends COSObjectable> valueClass)
dict - The dictionary that holds the name information.valueClass - The PD Model type of object that is the value.| Method Detail |
|---|
public COSBase getCOSObject()
getCOSObject in interface COSObjectablepublic COSDictionary getCOSDictionary()
public PDNameTreeNode getParent()
public void setParent(PDNameTreeNode parentNode)
parentNode - the node to be set as parentpublic boolean isRootNode()
public List<PDNameTreeNode> getKids()
public void setKids(List<? extends PDNameTreeNode> kids)
kids - The children of this named tree.
public Object getValue(String name)
throws IOException
name - The name in the tree.
IOException - If an there is a problem creating the destinations.
public Map<String,COSObjectable> getNames()
throws IOException
null if dictionary
contains no 'Names' entry
IOException - If there is an error while creating the sub types.
protected COSObjectable convertCOSToPD(COSBase base)
throws IOException
base - The COS object to convert.
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(Map<String,? extends COSObjectable> names)
names - map of names to objects, or nullpublic String getUpperLimit()
public String getLowerLimit()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||