|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectist.palcom.hmap.HmapNode
ist.palcom.hmap.HmapLeaf
public class HmapLeaf
| Nested Class Summary | |
|---|---|
class |
HmapLeaf.ValueHandler
|
| Nested classes/interfaces inherited from class ist.palcom.hmap.HmapNode |
|---|
HmapNode.NameHandler |
| Field Summary | |
|---|---|
static String |
HMAPLEAF_COMMAND_GETVALUE
|
static String |
HMAPLEAF_COMMAND_SETVALUE
|
| Fields inherited from class ist.palcom.hmap.HmapNode |
|---|
HET_DIR, HET_LEAF, HET_UNKNOWN, HMAPNODE_COMMAND_GETNAME, HMAPNODE_COMMAND_SETNAME, nameInvokator, nodeInvokator, parent, path, valueInvokator |
| Constructor Summary | |
|---|---|
HmapLeaf()
|
|
HmapLeaf(String name,
Object val)
|
|
| Method Summary | |
|---|---|
Object |
getValue()
Gets the value of the leaf |
protected void |
invokeHandlers(HmapEvent event)
Resovles and invokes handlers specified in the event |
protected boolean |
isAncestorOf(HmapNode node)
Returns true if this node is a direct ancestor of |
protected void |
recalculatePath(HmapPath parentPath)
Recalculates the path on the basis of the path of ones ancestors |
HmapNode |
resolve(HmapPath path,
int type)
Resolves a node in the current h-map |
HmapNode |
resolveLocally(HmapKey key,
int type)
Resolves a child of the current node |
void |
setValue(HmapEvent event)
|
void |
setValue(Object val)
Sets the value of the leaf |
String |
toString()
|
String |
toString(int indent)
|
String |
toStringAll(int indent)
|
| Methods inherited from class ist.palcom.hmap.HmapNode |
|---|
addHandler, addInvokator, addListener, asDir, asLeaf, callback, getFullyQualifiedType, getHmapEntryType, getKey, getName, getParent, getPath, getType, getTypeVersion, handle, handlerIterator, hasHandlers, hasInvokators, hasListeners, hasName, hasType, invokation, invokatorIterator, invokeListeners, isDir, isLeaf, listenerIterator, printHandlers, printInvokators, printListeners, recalculatePath, removeHandler, removeInvocator, removeListener, resolve, resolve, resolveDir, resolveDir, resolveDirLocally, resolveDirLocally, resolveLeaf, resolveLeaf, resolveLeafLocally, resolveLeafLocally, resolveLocally, resolveLocally, setName, setName, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, println |
| Field Detail |
|---|
public static final String HMAPLEAF_COMMAND_GETVALUE
public static final String HMAPLEAF_COMMAND_SETVALUE
| Constructor Detail |
|---|
public HmapLeaf()
public HmapLeaf(String name,
Object val)
name - Name of the entryval - Value contained by this entry| Method Detail |
|---|
public void setValue(Object val)
val - The new valuepublic void setValue(HmapEvent event)
public Object getValue()
protected boolean isAncestorOf(HmapNode node)
HmapNode
isAncestorOf in class HmapNodenode - The potential (grand)child nodeprotected void recalculatePath(HmapPath parentPath)
HmapNode
recalculatePath in class HmapNodeparentPath - The path of ones parent
public HmapNode resolve(HmapPath path,
int type)
HmapNode
resolve in class HmapNodepath - the path of the node to resolvetype - the type of the given node. Can be leaf, dir and unknown
public HmapNode resolveLocally(HmapKey key,
int type)
HmapNode
resolveLocally in class HmapNodekey - The key of the childtype - The type of the given node. Can be leaf, dir and unknown
protected void invokeHandlers(HmapEvent event)
HmapNode
invokeHandlers in class HmapNodeevent - The event to invoke handlers withpublic String toString()
toString in class Objectpublic String toString(int indent)
toString in class HmapNodeindent - Start the returned string with a number of whitespaces
public String toStringAll(int indent)
toStringAll in class HmapNodeindent - prepend a number of whitespaces to the retured string
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||