public class Assign extends Action implements PathResolverHolder
Constructor and Description |
---|
Assign()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ActionExecutionContext exctx)
Execute this action instance.
|
String |
getAttr() |
String |
getExpr()
Get the expr that will evaluate to the new value.
|
String |
getLocation()
Get the location for a previously defined XML data tree.
|
PathResolver |
getPathResolver()
Get the
PathResolver . |
String |
getSrc()
Get the source where the new XML instance for this location exists.
|
Evaluator.AssignType |
getType() |
void |
setAttr(String attr) |
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 |
setPathResolver(PathResolver pathResolver)
Set the
PathResolver . |
void |
setSrc(String src)
Set the source where the new XML instance for this location exists.
|
void |
setType(Evaluator.AssignType type) |
getNamespaces, getNamespacesKey, getParent, getParentEnterableState, getTextContentIfNodeResult, setNamespaces, setParent
public Assign()
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 Evaluator.AssignType getType()
public void setType(Evaluator.AssignType type)
public void execute(ActionExecutionContext exctx) throws ModelException, SCXMLExpressionException
execute
in class Action
exctx
- The ActionExecutionContext for this execution instanceModelException
- 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–2015 The Apache Software Foundation. All rights reserved.