public class MethodCallBuilderImpl extends MethodCallBuilder
| Constructor and Description |
|---|
MethodCallBuilderImpl(FlowBuilderImpl root,
String id) |
| Modifier and Type | Method and Description |
|---|---|
MethodCallBuilder |
defaultOutcome(String outcome)
If the method is a void method, or the
method returns |
MethodCallBuilder |
defaultOutcome(javax.el.ValueExpression ve)
If the method is a void method, or the
method returns |
MethodCallBuilder |
expression(javax.el.MethodExpression me)
Set the method expression of this method call node. |
MethodCallBuilder |
expression(String methodExpression)
Set the method expression of this method call node. |
MethodCallBuilder |
expression(String methodExpression,
Class[] paramTypes)
Set the method expression of this method call node. |
MethodCallBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
MethodCallBuilder |
parameters(List<Parameter> parameters)
Set the parameters of the method call node. |
public MethodCallBuilderImpl(FlowBuilderImpl root, String id)
public MethodCallBuilder defaultOutcome(String outcome)
MethodCallBuilderIf the method is a void method, or the
method returns null, this can be used to specify what value
should be passed to runtime when the method returns.
defaultOutcome in class MethodCallBuilderoutcome - A ValueExpression String representing
the default outcome, only used if the method is a void
method or returns null.public MethodCallBuilder defaultOutcome(javax.el.ValueExpression ve)
MethodCallBuilderIf the method is a void method, or the
method returns null, this can be used to specify what value
should be passed to runtime when the method returns.
defaultOutcome in class MethodCallBuilderve - A ValueExpression representing
the default outcome, only used if the method is a void
method or returns null.public MethodCallBuilder expression(String methodExpression)
MethodCallBuilderSet the method expression of this method call node. The method
signature of the argument methodExpression must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>) method.
expression in class MethodCallBuildermethodExpression - The MethodExpression String to invoke.public MethodCallBuilder expression(String methodExpression, Class[] paramTypes)
MethodCallBuilderSet the method expression of this method call node. The method
signature of the argument methodExpression must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>) method.
expression in class MethodCallBuildermethodExpression - The MethodExpression to invoke.paramTypes - the types of the parameters to the method.public MethodCallBuilder parameters(List<Parameter> parameters)
MethodCallBuilderSet the parameters of the method call node.
parameters in class MethodCallBuilderparameters - the parameters to pass to the method when it is invoked.public MethodCallBuilder expression(javax.el.MethodExpression me)
MethodCallBuilderSet the method expression of this method call node. The method
signature of the argument methodExpression must match the number and
type of the parameters passed in the MethodCallBuilder.parameters(java.util.List<javax.faces.flow.Parameter>) method.
expression in class MethodCallBuilderme - The MethodExpression to invoke.public MethodCallBuilder markAsStartNode()
NodeBuilderMark this node as the start node in the flow. Any other node that had been marked as the start node will no longer be the start node.
markAsStartNode in interface NodeBuildermarkAsStartNode in class MethodCallBuilderCopyright © 1997–2019 Eclipse Foundation. All rights reserved.