ist.palcom.hgraph
Class ValueHandler

java.lang.Object
  extended by ist.palcom.hgraph.AbstractHandler
      extended by ist.palcom.hgraph.ValueHandler
All Implemented Interfaces:
Handler

public class ValueHandler
extends AbstractHandler

ValueHandler handles commands related to the manipulation of node values


Field Summary
static java.lang.String CMD_ADDVALUE
          Adds a new value to the node
static java.lang.String CMD_GETVALUE
          Gets an existing value from the node
static java.lang.String CMD_REMOVEVALUE
          Removes an existing value from the node
static java.lang.String CMD_SETVALUE
          Sets an existing value of the node
 
Fields inherited from class ist.palcom.hgraph.AbstractHandler
DEFAULT_NUM_LOGS
 
Constructor Summary
ValueHandler(HgraphNode node)
           
 
Method Summary
 Signature[] getSignatures()
           
 void handle(HgraphEvent event)
          The handle method is invoked by the HgraphNode in which the handler is installed.
 
Methods inherited from class ist.palcom.hgraph.AbstractHandler
getDescription, getLast, getLogIterator, getName, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CMD_ADDVALUE

public static final java.lang.String CMD_ADDVALUE
Adds a new value to the node

See Also:
Constant Field Values

CMD_REMOVEVALUE

public static final java.lang.String CMD_REMOVEVALUE
Removes an existing value from the node

See Also:
Constant Field Values

CMD_SETVALUE

public static final java.lang.String CMD_SETVALUE
Sets an existing value of the node

See Also:
Constant Field Values

CMD_GETVALUE

public static final java.lang.String CMD_GETVALUE
Gets an existing value from the node

See Also:
Constant Field Values
Constructor Detail

ValueHandler

public ValueHandler(HgraphNode node)
Method Detail

getSignatures

public Signature[] getSignatures()
Returns:
The signatures of the commands handled by the handler

handle

public void handle(HgraphEvent event)
Description copied from interface: Handler
The handle method is invoked by the HgraphNode in which the handler is installed. This happens once the node receives an event for which it is the designatee. The handler may freely switch on the command string of the event and act accordingly

Specified by:
handle in interface Handler
Overrides:
handle in class AbstractHandler
See Also:
Handler