ist.palcom.hgraph
Class PrintHandler

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

public class PrintHandler
extends AbstractHandler

PrintHandler handles commands related to textual representations of the node (and its offspring)


Field Summary
static java.lang.String CMD_PRINT
          Returns a simple representation of the node and its children
static java.lang.String CMD_PRINT_FULL
          Returns a full representation of the node
static java.lang.String CMD_PRINT_FULL_RECURSIVELY
          Returns a recursive full representation of the node and its offspring
static java.lang.String CMD_PRINT_RECURSIVELY
          Returns a recursive simple representation of the node and its offspring
 
Fields inherited from class ist.palcom.hgraph.AbstractHandler
DEFAULT_NUM_LOGS
 
Constructor Summary
PrintHandler(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_PRINT

public static final java.lang.String CMD_PRINT
Returns a simple representation of the node and its children

See Also:
Constant Field Values

CMD_PRINT_FULL

public static final java.lang.String CMD_PRINT_FULL
Returns a full representation of the node

See Also:
Constant Field Values

CMD_PRINT_RECURSIVELY

public static final java.lang.String CMD_PRINT_RECURSIVELY
Returns a recursive simple representation of the node and its offspring

See Also:
Constant Field Values

CMD_PRINT_FULL_RECURSIVELY

public static final java.lang.String CMD_PRINT_FULL_RECURSIVELY
Returns a recursive full representation of the node and its offspring

See Also:
Constant Field Values
Constructor Detail

PrintHandler

public PrintHandler(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