com.googlecode.sarasvati.impl
Class AcceptTokenGuardResult

java.lang.Object
  extended by com.googlecode.sarasvati.impl.AcceptTokenGuardResult
All Implemented Interfaces:
GuardResult

public final class AcceptTokenGuardResult
extends Object
implements GuardResult


Field Summary
static GuardResult INSTANCE
           
 
Method Summary
 String getExitArcForSkip()
          If GuardAction.SkipNode is returned from Node.guard(Engine, NodeToken), it may indicate an arc name other than the default on which to exit.
 GuardAction getGuardAction()
          Indicates which GuardAction has been selected.
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTANCE

public static final GuardResult INSTANCE
Method Detail

getExitArcForSkip

public String getExitArcForSkip()
Description copied from interface: GuardResult
If GuardAction.SkipNode is returned from Node.guard(Engine, NodeToken), it may indicate an arc name other than the default on which to exit. This can be useful for decision logic.

Specified by:
getExitArcForSkip in interface GuardResult
Returns:
The name of the arc or arcs on which to exit this node.

getGuardAction

public GuardAction getGuardAction()
Description copied from interface: GuardResult
Indicates which GuardAction has been selected.

Specified by:
getGuardAction in interface GuardResult
Returns:
The GuardAction selected.

toString

public String toString()
Overrides:
toString in class Object