ist.palcom.hgraph
Class ValueFunc

java.lang.Object
  extended by ist.palcom.hgraph.ValueFunc

public class ValueFunc
extends java.lang.Object

Value functionality for H-Graph nodes. This class provides functionality for holding and maintaining a set of Values


Constructor Summary
ValueFunc(IHgraphNode node)
           
 
Method Summary
 int addValue(Value value, Path callerPath)
          Adds a value to the local list of inspectable values.
 Value getValue(java.lang.String name)
          Gets the value Object of a named Value
 int removeValue(java.lang.String name, Path callerPath)
          Removes a value from the local list of inspectable values based on its name
 int setValue(java.lang.String name, java.lang.Object value, Path callerPath)
          Sets the value of a named Value
 java.util.Iterator valueIterator()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ValueFunc

public ValueFunc(IHgraphNode node)
Method Detail

addValue

public int addValue(Value value,
                    Path callerPath)
Adds a value to the local list of inspectable values. Values must have unique names and the value will thus only be added, if its name is unique

Returns:
a status message

removeValue

public int removeValue(java.lang.String name,
                       Path callerPath)
Removes a value from the local list of inspectable values based on its name

Parameters:
name -
Returns:
a status message

setValue

public int setValue(java.lang.String name,
                    java.lang.Object value,
                    Path callerPath)
Sets the value of a named Value

Parameters:
name - name of the Value to set the value for
value - the new value
Returns:
a status message

getValue

public Value getValue(java.lang.String name)
Gets the value Object of a named Value

Parameters:
name - the name of the Value to get
Returns:
the Value corresponding to the name. Null if none is found

valueIterator

public java.util.Iterator valueIterator()