public class Assign extends Action implements PathResolverHolder
Constructor and Description |
---|
Assign()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(EventDispatcher evtDispatcher,
ErrorReporter errRep,
SCInstance scInstance,
org.apache.commons.logging.Log appLog,
Collection derivedEvents)
Execute this action instance.
|
String |
getExpr()
Get the expr that will evaluate to the new value.
|
String |
getLocation()
Get the location for a previously defined XML data tree.
|
String |
getName()
Get the variable to be assigned a new value.
|
PathResolver |
getPathResolver()
Get the
PathResolver . |
String |
getSrc()
Get the source where the new XML instance for this location exists.
|
void |
setExpr(String expr)
Set the expr that will evaluate to the new value.
|
void |
setLocation(String location)
Set the location for a previously defined XML data tree.
|
void |
setName(String name)
Get the variable to be assigned a new value.
|
void |
setPathResolver(PathResolver pathResolver)
Set the
PathResolver . |
void |
setSrc(String src)
Set the source where the new XML instance for this location exists.
|
getNamespaces, getNamespacesKey, getParent, getParentState, getParentTransitionTarget, setNamespaces, setParent
public String getName()
public void setName(String name)
name
- The name to set.public String getExpr()
public void setExpr(String expr)
expr
- The expr to set.public String getLocation()
public void setLocation(String location)
location
- The location.public String getSrc()
public void setSrc(String src)
src
- The source.public PathResolver getPathResolver()
PathResolver
.getPathResolver
in interface PathResolverHolder
public void setPathResolver(PathResolver pathResolver)
PathResolver
.setPathResolver
in interface PathResolverHolder
pathResolver
- The pathResolver to set.public void execute(EventDispatcher evtDispatcher, ErrorReporter errRep, SCInstance scInstance, org.apache.commons.logging.Log appLog, Collection derivedEvents) throws ModelException, SCXMLExpressionException
execute
in class Action
evtDispatcher
- The EventDispatcher for this execution instanceerrRep
- 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.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-2012 Apache Software Foundation. All Rights Reserved.