|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.pod.lwgraph.BasicLWNode
public class BasicLWNode
A basic implementation of the light-weight node interface. This class implements a node that contains a set of attributes.
Constructor Summary | |
---|---|
BasicLWNode()
Create a new node |
Method Summary | |
---|---|
int |
getNodeId()
Return the integer id of this node |
Object |
getProperty(String key)
Return the property corresponding to the given key, or null if no such property exists. |
Iterator |
propertyNames()
Return an iteration of the names of the properties |
void |
setNodeId(int id)
Set the integer id of this node. |
void |
setProperty(String key,
Object value)
Set the property corresponding to the given key. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicLWNode()
Method Detail |
---|
public int getNodeId()
getNodeId
in interface LWNode
public Object getProperty(String key)
getProperty
in interface PropertyContainer
public void setNodeId(int id)
setNodeId
in interface LWNode
public Iterator propertyNames()
propertyNames
in interface PropertyContainer
public void setProperty(String key, Object value)
setProperty
in interface PropertyContainer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |