org.apache.commons.scxml.model
Class Exit

java.lang.Object
  extended by org.apache.commons.scxml.model.Action
      extended by org.apache.commons.scxml.model.Exit
All Implemented Interfaces:
Serializable, NamespacePrefixesHolder

public class Exit
extends Action

The class in this SCXML object model that corresponds to the <exit> SCXML element, which is a shorthand notation for an empty anonymous final state.

See Also:
Serialized Form

Constructor Summary
Exit()
          Constructor.
 
Method Summary
 void execute(EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance, org.apache.commons.logging.Log appLog, Collection derivedEvents)
          Execute this action instance.
 String getExpr()
          Get the expression.
 String getNamelist()
          Get the namelist.
 void setExpr(String expr)
          Set the expression.
 void setNamelist(String namelist)
          Set the namelist.
 
Methods inherited from class org.apache.commons.scxml.model.Action
getNamespaces, getNamespacesKey, getParent, getParentState, getParentTransitionTarget, setNamespaces, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Exit

public Exit()
Constructor.

Method Detail

getExpr

public final String getExpr()
Get the expression.

Returns:
String Returns the expr.

setExpr

public final void setExpr(String expr)
Set the expression.

Parameters:
expr - The expr to set.

getNamelist

public final String getNamelist()
Get the namelist.

Returns:
String Returns the namelist.

setNamelist

public final void setNamelist(String namelist)
Set the namelist.

Parameters:
namelist - The namelist to set.

execute

public void execute(EventDispatcher evtDispatcher,
                    ErrorReporter errRep,
                    SCInstance scInstance,
                    org.apache.commons.logging.Log appLog,
                    Collection derivedEvents)
             throws ModelException,
                    SCXMLExpressionException
Execute this action instance.

Specified by:
execute in class Action
Parameters:
evtDispatcher - The EventDispatcher for this execution instance
errRep - The ErrorReporter to broadcast any errors during execution.
scInstance - The state machine execution instance information.
appLog - The application Log.
derivedEvents - The collection to which any internal events arising from the execution of this action must be added.
Throws:
ModelException - If the execution causes the model to enter a non-deterministic state.
SCXMLExpressionException - If the execution involves trying to evaluate an expression which is malformed.


Copyright © 2005-2008 The Apache Software Foundation. All Rights Reserved.