public class PDNameTreeNode extends Object implements COSObjectable
Constructor and Description |
---|
PDNameTreeNode(Class valueClass)
Constructor.
|
PDNameTreeNode(COSDictionary dict,
Class valueClass)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
convertCOSToPD(COSBase base)
Method to convert the COS value in the name tree to the PD Model object.
|
protected PDNameTreeNode |
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.
|
String |
getLowerLimit()
Get the lowest value for a key in the name map.
|
Map<String,Object> |
getNames()
This will return a map of names.
|
String |
getUpperLimit()
Get the highest value for a key in the name map.
|
Object |
getValue(String name)
The name to retrieve.
|
void |
setKids(List kids)
Set the children of this named tree.
|
void |
setNames(Map<String,? extends COSObjectable> names)
Set the names of for this node.
|
public PDNameTreeNode(Class valueClass)
valueClass
- The PD Model type of object that is the value.public PDNameTreeNode(COSDictionary dict, Class 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 List getKids()
public void setKids(List kids)
kids
- The children of this named tree.public Object getValue(String name) throws IOException
name
- The name in the tree.IOException
- If an there is a problem creating the destinations.public Map<String,Object> getNames() throws IOException
null
if dictionary
contains no 'Names' entryIOException
- If there is an error while creating the sub types.protected Object convertCOSToPD(COSBase base) throws IOException
base
- The COS object to convert.IOException
- If there is an error during creation.protected PDNameTreeNode createChildNode(COSDictionary dic)
dic
- The dictionary for the child node object to refer to.public void setNames(Map<String,? extends COSObjectable> names)
names
- map of names to objects, or null
public String getUpperLimit()
public String getLowerLimit()
Copyright © 2002–2013 The Apache Software Foundation. All rights reserved.