public class PDNumberTreeNode extends Object implements COSObjectable
| Constructor and Description |
|---|
PDNumberTreeNode(Class<? extends COSObjectable> valueClass)
Constructor.
|
PDNumberTreeNode(COSDictionary dict,
Class<? extends COSObjectable> valueClass)
Constructor.
|
| Modifier and Type | Method and 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 |
getCOSObject()
Convert this standard java object to a COS object.
|
List<PDNumberTreeNode> |
getKids()
Return the children of this node.
|
Integer |
getLowerLimit()
Get the lowest value for a key in the name map.
|
Map<Integer,COSObjectable> |
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<? extends PDNumberTreeNode> kids)
Set the children of this number tree.
|
void |
setNumbers(Map<Integer,? extends COSObjectable> numbers)
Set the names of for this node.
|
public PDNumberTreeNode(Class<? extends COSObjectable> valueClass)
valueClass - The PD Model type of object that is the value.public PDNumberTreeNode(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.public COSDictionary getCOSObject()
getCOSObject in interface COSObjectablepublic List<PDNumberTreeNode> getKids()
public void setKids(List<? extends PDNumberTreeNode> 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<Integer,COSObjectable> getNumbers() throws IOException
IOException - If there is a problem creating the values.protected COSObjectable 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,? extends COSObjectable> numbers)
numbers - The map of names to objects.public Integer getUpperLimit()
public Integer getLowerLimit()
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.