public interface MethodCall extends Activity
<method-call> <method>#{pageFlowScope.taxService.calculateSalesTax}</method> <parameter> <class>java.lang.Double</class> <value>#{pageFlowScope.shoppingCart.totalPurchasePrice}</value> </parameter> <outcome> <to-string/> </outcome> </method-call>
Modifier and Type | Method and Description |
---|---|
boolean |
addParameter(Parameter parameter)
Adds a new parameter to this method call.
|
boolean |
convertToString()
Indicates whether a value returned from a method should be converted
to Java
String . |
java.lang.String |
getDefaultOutcome()
Retrieves a constant representing the default outcome of this method.
|
java.lang.String |
getMethod()
Retrieves a method EL expression representing this method call.
|
java.util.List<Parameter> |
getParameters()
Retrieves the
List of input parameters to this method. |
java.lang.String |
getReturnValue()
The EL expression used to store method's return value.
|
boolean |
removeParameter(Parameter parameter)
Removes specified parameter from a method call definition.
|
boolean |
setConvertToString(boolean convertToString)
If convertToString is true, and a method call has a fixed outcome defined,
the fixed outcome will be removed and to-string element will be added.
|
boolean |
setDefaultOutcome(java.lang.String defaultOutcome)
Adds a literal outcome that will be returned when this method call activity
executes.
|
boolean |
setMethod(java.lang.String method)
Sets a method expression for this method call activity.
|
boolean |
setReturnValue(java.lang.String returnValue)
Sets a return value for this method call activity.
|
getId, getMetadataObject, getType
getDescription, getDisplayName, getLargeIcon, getSmallIcon, getUIInfo, setDescription, setDisplayName, setLargeIcon, setSmallIcon
getParsingContext, validate
getIdAttribute, setIdAttribute
getNode
java.lang.String getMethod()
#{pageFlowScope.taxService.calculateSalesTax
java.util.List<Parameter> getParameters()
List
of input parameters to this method.boolean convertToString()
String
.#toString()
should be called on the result
when setting the outcome of this method call activity.java.lang.String getDefaultOutcome()
java.lang.String getReturnValue()
boolean setConvertToString(boolean convertToString)
setDefaultOutcome(java.lang.String)
instead.convertToString
- boolean setDefaultOutcome(java.lang.String defaultOutcome)
defaultOutcome
- boolean setMethod(java.lang.String method)
method
- the EL expression representing this method call, must not be nullboolean setReturnValue(java.lang.String returnValue)
returnValue
- the return value to setboolean addParameter(Parameter parameter)
parameter
- a new method parameter, must not be nullboolean removeParameter(Parameter parameter)
parameter
- method parameter to be removed