public class CDSNameTreeNode extends CDSTreeNode
COSBasedObject.MetaClass| Modifier and Type | Field and Description |
|---|---|
static COSName |
DK_Names |
DK_Kids, DK_LimitsMETA| Modifier and Type | Method and Description |
|---|---|
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. |
isIntermediatechanged, 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, toStringpublic static final COSName DK_Names
public static CDSNameTreeNode createFromCos(COSDictionary node)
node.node - The COSDictionary defining a CDSTreeNode subclass
instancenode.public static CDSTreeNode createIntermediate()
public static CDSNameTreeNode createLeaf()
public static CDSNameTreeNode createRootIntermediate()
public static CDSNameTreeNode createRootLeaf()
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 List getEntries()
public List getKids()
public COSArray getLimits()
public COSString getMax()
public COSString getMin()
public boolean isLeaf()
isLeaf in class CDSTreeNodepublic 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 which the value should be associated.value - The value to associate with the name.name or
COSNull.Copyright © 2013 intarsys consulting GmbH. All Rights Reserved.