Package org.apache.pdfbox.pdmodel
Class PDJavascriptNameTreeNode
- java.lang.Object
-
- org.apache.pdfbox.pdmodel.common.PDNameTreeNode
-
- org.apache.pdfbox.pdmodel.PDJavascriptNameTreeNode
-
- All Implemented Interfaces:
COSObjectable
public class PDJavascriptNameTreeNode extends PDNameTreeNode
This class holds all of the name trees that are available at the document level.- Version:
- $Revision: 1.1 $
- Author:
- Ben Litchfield
-
-
Constructor Summary
Constructors Constructor Description PDJavascriptNameTreeNode()
Constructor.PDJavascriptNameTreeNode(COSDictionary dic)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.-
Methods inherited from class org.apache.pdfbox.pdmodel.common.PDNameTreeNode
getCOSDictionary, getCOSObject, getKids, getLowerLimit, getNames, getParent, getUpperLimit, getValue, isRootNode, setKids, setNames, setParent
-
-
-
-
Constructor Detail
-
PDJavascriptNameTreeNode
public PDJavascriptNameTreeNode()
Constructor.
-
PDJavascriptNameTreeNode
public PDJavascriptNameTreeNode(COSDictionary dic)
Constructor.- Parameters:
dic
- The COS dictionary.
-
-
Method Detail
-
convertCOSToPD
protected COSObjectable convertCOSToPD(COSBase base) throws java.io.IOException
Method to convert the COS value in the name tree to the PD Model object. The default implementation will simply return the given COSBase object. Subclasses should do something specific.- Overrides:
convertCOSToPD
in classPDNameTreeNode
- Parameters:
base
- The COS object to convert.- Returns:
- The converted PD Model object.
- Throws:
java.io.IOException
- If there is an error during creation.
-
createChildNode
protected PDNameTreeNode createChildNode(COSDictionary dic)
Create a child node object.- Overrides:
createChildNode
in classPDNameTreeNode
- Parameters:
dic
- The dictionary for the child node object to refer to.- Returns:
- The new child node object.
-
-