|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.intarsys.pdf.cos.COSBasedObject
de.intarsys.pdf.cds.CDSBase
de.intarsys.pdf.cds.CDSTreeNode
de.intarsys.pdf.cds.CDSNameTreeNode
public class CDSNameTreeNode
Implementation of the PDF name tree.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
COSBasedObject.MetaClass |
Field Summary | |
---|---|
static COSName |
DK_Names
|
Fields inherited from class de.intarsys.pdf.cds.CDSTreeNode |
---|
DK_Kids, DK_Limits |
Fields inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
META |
Method Summary | |
---|---|
void |
addAll(CDSNameTreeNode node)
Add all children from node . |
boolean |
contains(COSString name)
Answer true if the receiver subtree contains a key that
matches the parameter. |
static CDSNameTreeNode |
createFromCos(COSDictionary node)
Create the correct concrete CDSTreeNode implementation for node . |
static CDSTreeNode |
createIntermediate()
|
static CDSNameTreeNode |
createLeaf()
|
static CDSNameTreeNode |
createRootIntermediate()
|
static CDSNameTreeNode |
createRootLeaf()
|
COSObject |
get(COSString name)
Answer the value associated with the key name . |
List |
getEntries()
|
List |
getKids()
|
COSArray |
getLimits()
Return the two element array containing the smallest and the largest key within the receiver subtree. |
COSString |
getMax()
The maximum key within the receiver subtree. |
COSString |
getMin()
The minimum key within the receiver subtree. |
boolean |
isLeaf()
|
Iterator |
iterator()
An Iterator on all leaf fields in the subtree. |
boolean |
mayContain(COSString name)
Answer true if the receiver MAY contain the key
name . |
COSObject |
put(COSString name,
COSObject value)
Store value under the key given in name . |
COSObject |
remove(COSString name)
Remove the mapping for key given in name . |
Methods inherited from class de.intarsys.pdf.cds.CDSTreeNode |
---|
isIntermediate |
Methods inherited from class de.intarsys.pdf.cos.COSBasedObject |
---|
changed, cosGetArray, cosGetDict, cosGetDoc, cosGetField, cosGetObject, cosGetStream, cosHasField, cosRemoveField, cosSetField, getAttribute, getFieldBoolean, getFieldDate, getFieldFixed, getFieldFixedArray, getFieldInt, getFieldMLString, getFieldString, invalidateCaches, removeAttribute, setAttribute, setFieldBoolean, setFieldFixed, setFieldInt, setFieldMLString, setFieldName, setFieldObject, setFieldString, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final COSName DK_Names
Method Detail |
---|
public static CDSNameTreeNode createFromCos(COSDictionary node)
node
.
node
- The COSDictionary
defining a CDSTreeNode subclass
instance
node
.public static CDSNameTreeNode createRootIntermediate()
public static CDSNameTreeNode createRootLeaf()
public static CDSTreeNode createIntermediate()
public static CDSNameTreeNode createLeaf()
public List getKids()
public void addAll(CDSNameTreeNode node)
node
.
node
- A CDSNameTreeNode
whose children are copied.public boolean contains(COSString name)
true
if the receiver subtree contains a key that
matches the parameter.
name
- The key that is searched in the receiver subtree.
true
if the receiver subtree contains a key
that matches the parameter.public COSObject get(COSString name)
name
. If no key
is available that matches the parameter, COSNull
is
returned.
name
- The key whose value is looked up.
name
.public COSArray getLimits()
public COSString getMax()
public COSString getMin()
public Iterator iterator()
Iterator
on all leaf fields in the subtree.
Iterator
on all leaf fields in the subtree.public boolean mayContain(COSString name)
true
if the receiver MAY contain the key
name
.
Thi means, name
lies between the range defined by the
lower und upper limit key of the receiver.
name
- The key name to lookup.
true
if the receiver MAY contain the key
name
.public COSObject put(COSString name, COSObject value)
value
under the key given in name
.
name
- The name with wich the value should be associated.value
- The value to associate with the name.
name
or
COSNull
.public COSObject remove(COSString name)
name
.
name
- The name fo the mapping to be removed
name
or
COSNull
.public boolean isLeaf()
isLeaf
in class CDSTreeNode
public List getEntries()
|
intarsys PDF library API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |