COSObjectable
public class PDNumberTreeNode extends java.lang.Object implements COSObjectable
Constructor | Description |
---|---|
PDNumberTreeNode(java.lang.Class<? extends COSObjectable> valueClass) |
Constructor.
|
PDNumberTreeNode(COSDictionary dict,
java.lang.Class<? extends COSObjectable> valueClass) |
Constructor.
|
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 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.
|
java.util.List<PDNumberTreeNode> |
getKids() |
Return the children of this node.
|
java.lang.Integer |
getLowerLimit() |
Get the lowest value for a key in the name map.
|
java.util.Map<java.lang.Integer,COSObjectable> |
getNumbers() |
This will return a map of numbers.
|
java.lang.Integer |
getUpperLimit() |
Get the highest value for a key in the name map.
|
java.lang.Object |
getValue(java.lang.Integer index) |
Returns the value corresponding to an index in the number tree.
|
void |
setKids(java.util.List<? extends PDNumberTreeNode> kids) |
Set the children of this number tree.
|
void |
setNumbers(java.util.Map<java.lang.Integer,? extends COSObjectable> numbers) |
Set the names of for this node.
|
public PDNumberTreeNode(java.lang.Class<? extends COSObjectable> valueClass)
valueClass
- The PD Model type of object that is the value.public PDNumberTreeNode(COSDictionary dict, java.lang.Class<? extends COSObjectable> 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 COSObjectable
public COSDictionary getCOSDictionary()
public java.util.List<PDNumberTreeNode> getKids()
public void setKids(java.util.List<? extends PDNumberTreeNode> kids)
kids
- The children of this number tree.public java.lang.Object getValue(java.lang.Integer index) throws java.io.IOException
index
- The index in the number tree.java.io.IOException
- If there is a problem creating the values.public java.util.Map<java.lang.Integer,COSObjectable> getNumbers() throws java.io.IOException
java.io.IOException
- If there is a problem creating the values.protected COSObjectable convertCOSToPD(COSBase base) throws java.io.IOException
base
- The COS object to convert.java.io.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(java.util.Map<java.lang.Integer,? extends COSObjectable> numbers)
numbers
- The map of names to objects.public java.lang.Integer getUpperLimit()
public java.lang.Integer getLowerLimit()