Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.common » [javadoc | source]
org.apache.pdfbox.pdmodel.common
public class: PDNameTreeNode [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.common.PDNameTreeNode

All Implemented Interfaces:
    COSObjectable

Direct Known Subclasses:
    PDEmbeddedFilesNameTreeNode, PDJavascriptNameTreeNode, PDDestinationNameTreeNode

This class represends a PDF Name tree. See the PDF Reference 1.5 section 3.8.5 for more details.
Constructor:
 public PDNameTreeNode(Class valueClass) 
    Constructor.
    Parameters:
    valueClass - The PD Model type of object that is the value.
 public PDNameTreeNode(COSDictionary dict,
    Class valueClass) 
    Constructor.
    Parameters:
    dict - The dictionary that holds the name information.
    valueClass - The PD Model type of object that is the value.
Method from org.apache.pdfbox.pdmodel.common.PDNameTreeNode Summary:
convertCOSToPD,   createChildNode,   getCOSDictionary,   getCOSObject,   getKids,   getLowerLimit,   getNames,   getUpperLimit,   getValue,   setKids,   setNames
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.common.PDNameTreeNode Detail:
 protected Object convertCOSToPD(COSBase base) throws IOException 
    Method to convert the COS value in the name tree to the PD Model object. The default implementation will simply use reflection to create the correct object type. Subclasses can do whatever they want.
 protected PDNameTreeNode createChildNode(COSDictionary dic) 
    Create a child node object.
 public COSDictionary getCOSDictionary() 
    Convert this standard java object to a COS object.
 public COSBase getCOSObject() 
    Convert this standard java object to a COS object.
 public List getKids() 
    Return the children of this node. This list will contain PDNameTreeNode objects.
 public String getLowerLimit() 
    Get the lowest value for a key in the name map.
 public Map getNames() throws IOException 
    This will return a map of names. The key will be a java.lang.String the value will depend on where this class is being used.
 public String getUpperLimit() 
    Get the highest value for a key in the name map.
 public Object getValue(String name) throws IOException 
    The name to retrieve.
 public  void setKids(List kids) 
    Set the children of this named tree.
 public  void setNames(Map names) 
    Set the names of for this node. The keys should be java.lang.String and the values must be a COSObjectable. This method will set the appropriate upper and lower limits based on the keys in the map.