public abstract class PDNameTreeNode<T extends COSObjectable> extends Object implements COSObjectable
Modifier | Constructor and Description |
---|---|
protected |
PDNameTreeNode()
Constructor.
|
protected |
PDNameTreeNode(COSDictionary dict)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract T |
convertCOSToPD(COSBase base)
Method to convert the COS value in the name tree to the PD Model object.
|
protected abstract PDNameTreeNode<T> |
createChildNode(COSDictionary dic)
Create a child node object.
|
COSDictionary |
getCOSObject()
Convert this standard java object to a COS object.
|
List<PDNameTreeNode<T>> |
getKids()
Return the children of this node.
|
String |
getLowerLimit()
Get the lowest value for a key in the name map.
|
Map<String,T> |
getNames()
This will return a map of names.
|
PDNameTreeNode |
getParent()
Returns the parent node.
|
String |
getUpperLimit()
Get the highest value for a key in the name map.
|
T |
getValue(String name)
The name to retrieve.
|
boolean |
isRootNode()
Determines if this is a root node or not.
|
void |
setKids(List<? extends PDNameTreeNode<T>> kids)
Set the children of this named tree.
|
void |
setNames(Map<String,T> names)
Set the names of for this node.
|
void |
setParent(PDNameTreeNode parentNode)
Sets the parent to the given node.
|
protected PDNameTreeNode()
protected PDNameTreeNode(COSDictionary dict)
dict
- The dictionary that holds the name information.public COSDictionary getCOSObject()
getCOSObject
in interface COSObjectable
public PDNameTreeNode getParent()
public void setParent(PDNameTreeNode parentNode)
parentNode
- the node to be set as parentpublic boolean isRootNode()
public List<PDNameTreeNode<T>> getKids()
public void setKids(List<? extends PDNameTreeNode<T>> kids)
kids
- The children of this named tree.public T getValue(String name) throws IOException
name
- The name in the tree.IOException
- If an there is a problem creating the destinations.public Map<String,T> getNames() throws IOException
null
if dictionary
contains no 'Names' entryIOException
- If there is an error while creating the sub types.protected abstract T convertCOSToPD(COSBase base) throws IOException
base
- The COS object to convert.IOException
- If there is an error during creation.protected abstract PDNameTreeNode<T> createChildNode(COSDictionary dic)
dic
- The dictionary for the child node object to refer to.public void setNames(Map<String,T> names)
names
- map of names to objects, or null
public String getUpperLimit()
public String getLowerLimit()
Copyright © 2002–2016 The Apache Software Foundation. All rights reserved.