ist.palcom.hgraph
Class Value
java.lang.Object
ist.palcom.hgraph.Value
public class Value
- extends java.lang.Object
A Value is a work-around for representing and making non-hgraph entities inspectable.
They comprise of a string name and an object value.
So, a value with name foo and a String value "bar" should be considered in parallel to String foo = "bar"
The name is static and cannot change after creation time
|
Constructor Summary |
Value(java.lang.String name,
java.lang.Object value)
Creates a Value with a name and a value. |
|
Method Summary |
java.lang.String |
getName()
|
java.lang.Object |
getValue()
|
void |
setValue(java.lang.Object value)
Sets the value of the Value |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Value
public Value(java.lang.String name,
java.lang.Object value)
- Creates a Value with a name and a value. The value may or may not be null
- Parameters:
name - value -
getName
public java.lang.String getName()
- Returns:
- the name of the Value
getValue
public java.lang.Object getValue()
- Returns:
- The value of the Value
setValue
public void setValue(java.lang.Object value)
- Sets the value of the Value
- Parameters:
value -