public class Script extends Action implements BodyContainer
Constructor and Description |
---|
Script()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
execute(ActionExecutionContext exctx)
Execute this action instance.
|
String |
getBody()
Set the body content as a String.
|
String |
getScript()
Get the script to execute.
|
boolean |
isGlobalScript() |
void |
setBody(String body)
Set the body content as a String.
|
void |
setGlobalScript(boolean globalScript) |
getNamespaces, getNamespacesKey, getParent, getParentEnterableState, getTextContentIfNodeResult, setNamespaces, setParent
public Script()
public boolean isGlobalScript()
public void setGlobalScript(boolean globalScript)
public String getBody()
BodyContainer
getBody
in interface BodyContainer
public void setBody(String body)
BodyContainer
setBody
in interface BodyContainer
body
- The text content in the element body.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.