|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.pdfbox.pdmodel.common.PDNumberTreeNode
public class PDNumberTreeNode
This class represents a PDF Number tree. See the PDF Reference 1.7 section 7.9.7 for more details.
Constructor Summary | |
---|---|
PDNumberTreeNode(Class<?> valueClass)
Constructor. |
|
PDNumberTreeNode(COSDictionary dict,
Class<?> valueClass)
Constructor. |
Method Summary | |
---|---|
protected Object |
convertCOSToPD(COSBase base)
Method to convert the COS value in the name tree to the PD Model object. |
protected PDNumberTreeNode |
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 |
getKids()
Return the children of this node. |
Integer |
getLowerLimit()
Get the lowest value for a key in the name map. |
Map |
getNumbers()
This will return a map of numbers. |
Integer |
getUpperLimit()
Get the highest value for a key in the name map. |
Object |
getValue(Integer index)
Returns the value corresponding to an index in the number tree. |
void |
setKids(List kids)
Set the children of this number tree. |
void |
setNumbers(Map<Integer,Object> numbers)
Set the names of for this node. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PDNumberTreeNode(Class<?> valueClass)
valueClass
- The PD Model type of object that is the value.public PDNumberTreeNode(COSDictionary dict, Class<?> 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 COSObjectable
public COSDictionary getCOSDictionary()
public List getKids()
public void setKids(List kids)
kids
- The children of this number tree.public Object getValue(Integer index) throws IOException
index
- The index in the number tree.
IOException
- If there is a problem creating the values.public Map getNumbers() throws IOException
IOException
- If there is a problem creating the values.protected Object convertCOSToPD(COSBase base) throws IOException
base
- The COS object to convert.
IOException
- If there is an error during creation.protected PDNumberTreeNode createChildNode(COSDictionary dic)
dic
- The dictionary for the child node object to refer to.
public void setNumbers(Map<Integer,Object> numbers)
numbers
- The map of names to objects.public Integer getUpperLimit()
public Integer getLowerLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |