| Modifier and Type | Field and Description |
|---|---|
| private static final Log | |
| private final COSDictionary | |
| private Class |
| Access | Constructor and Description |
|---|---|
| public | PDNumberTreeNode(Class<? extends COSObjectable>
The PD Model type of object that is the value. valueClass)Constructor. |
| public | PDNumberTreeNode(COSDictionary
The dictionary that holds the number information. dict, Class<? extends COSObjectable> The PD Model type of object that is the value. valueClass)Constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected COSObjectable | Returns: The converted PD Model object.The COS object to convert. base)Method to convert the COS value in the number tree to the PD Model object. |
| protected PDNumberTreeNode | Returns: The new child node object.The dictionary for the child node object to refer to. dic)Create a child node object. |
| public COSDictionary | Returns: The cos object that matches this Java object.Implements org. Convert this standard java object to a COS object. |
| public List | Returns: The list of children or null if there are no children.Return the children of this node. |
| public Integer | Returns: The lowest value for a key in the map.Get the lowest value for a key in the number map. |
| public Map | |
| public Integer | Returns: The highest value for a key in the map.Get the highest value for a key in the number map. |
| public Object | |
| public void | setKids(List<? extends PDNumberTreeNode>
The children of this number tree. These have to be in sorted order. Because of
that, it is usually easier to call kids)setNumbers(Map) with a map and pass a single
element list here.Set the children of this number tree. |
| private void | setLowerLimit(Integer
The new lowest value for a key in the map. lower)Set the lowest value for the key in the map. |
| public void | setNumbers(Map<Integer, ? extends COSObjectable>
The map of numbers to objects, or numbers)null for nothing.Set the numbers for this node. |
| private void | setUpperLimit(Integer
The new highest value for a key in the map. upper)Set the highest value for the key in the map. |
| LOG | back to summary |
|---|---|
| private static final Log LOG | |
| node | back to summary |
|---|---|
| private final COSDictionary node | |
| valueType | back to summary |
|---|---|
| private Class<? extends COSObjectable> valueType | |
| PDNumberTreeNode | back to summary |
|---|---|
| public PDNumberTreeNode(Class<? extends COSObjectable> valueClass) Constructor.
| |
| PDNumberTreeNode | back to summary |
|---|---|
| public PDNumberTreeNode(COSDictionary dict, Class<? extends COSObjectable> valueClass) Constructor.
| |
| convertCOSToPD | back to summary |
|---|---|
| protected COSObjectable convertCOSToPD(COSBase base) throws IOException Method to convert the COS value in the number 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.
| |
| createChildNode | back to summary |
|---|---|
| protected PDNumberTreeNode createChildNode(COSDictionary dic) Create a child node object.
| |
| getCOSObject | back to summary |
|---|---|
| public COSDictionary getCOSObject() Implements org. Convert this standard java object to a COS object.
| |
| getKids | back to summary |
|---|---|
| public List Return the children of this node. This list will contain PDNumberTreeNode objects.
| |
| getLowerLimit | back to summary |
|---|---|
| public Integer getLowerLimit() Get the lowest value for a key in the number map.
| |
| getNumbers | back to summary |
|---|---|
| public Map This will return a map of numbers on this level. The key will be a java.lang.Integer, the value will depend on where this class is being used.
| |
| getUpperLimit | back to summary |
|---|---|
| public Integer getUpperLimit() Get the highest value for a key in the number map.
| |
| getValue | back to summary |
|---|---|
| public Object getValue(Integer index) throws IOException Returns the value corresponding to an index in the number tree.
| |
| setKids | back to summary |
|---|---|
| public void setKids(List<? extends PDNumberTreeNode> kids) Set the children of this number tree.
| |
| setLowerLimit | back to summary |
|---|---|
| private void setLowerLimit(Integer lower) Set the lowest value for the key in the map.
| |
| setNumbers | back to summary |
|---|---|
| public void setNumbers(Map<Integer, ? extends COSObjectable> numbers) Set the numbers for this node. This method will set the appropriate upper and lower limits based on the keys in the map and take care of the ordering.
| |
| setUpperLimit | back to summary |
|---|---|
| private void setUpperLimit(Integer upper) Set the highest value for the key in the map.
| |