Constructor and Description |
---|
SimpleNode(int id) |
SimpleNode(SimpleNode node)
Copy Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
getID()
Returns the Integer ID of this Node.
|
java.lang.String |
getProperty(java.lang.String key)
Returns the value of the property with the name given by the given key,
or null if no property with this name exists.
|
int |
hashCode() |
void |
setProperty(java.lang.String key,
java.lang.String value)
Adds or sets a property to this node.
|
java.lang.String |
toString() |
public SimpleNode(int id)
public SimpleNode(SimpleNode node)
node
- a node to be copiedpublic int getID()
Node
public void setProperty(java.lang.String key, java.lang.String value)
Node
setProperty
in interface Node
key
- a String representation of the name of the propertyvalue
- a String representation of the property valuepublic java.lang.String getProperty(java.lang.String key)
Node
getProperty
in interface Node
key
- a property namepublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object