public class MethodCallBuilderImpl
extends javax.faces.flow.builder.MethodCallBuilder
| Constructor and Description |
|---|
MethodCallBuilderImpl(FlowBuilderImpl root,
String id) |
| Modifier and Type | Method and Description |
|---|---|
javax.faces.flow.builder.MethodCallBuilder |
defaultOutcome(String outcome)
If the method is a void method, or the
method returns |
javax.faces.flow.builder.MethodCallBuilder |
defaultOutcome(javax.el.ValueExpression ve)
If the method is a void method, or the
method returns |
javax.faces.flow.builder.MethodCallBuilder |
expression(javax.el.MethodExpression me)
Set the method expression of this method call node. |
javax.faces.flow.builder.MethodCallBuilder |
expression(String methodExpression)
Set the method expression of this method call node. |
javax.faces.flow.builder.MethodCallBuilder |
expression(String methodExpression,
Class[] paramTypes)
Set the method expression of this method call node. |
javax.faces.flow.builder.MethodCallBuilder |
markAsStartNode()
Mark this node as the start node in the flow. |
javax.faces.flow.builder.MethodCallBuilder |
parameters(List<javax.faces.flow.Parameter> parameters)
Set the parameters of the method call node. |
public MethodCallBuilderImpl(FlowBuilderImpl root, String id)
public javax.faces.flow.builder.MethodCallBuilder defaultOutcome(String outcome)
javax.faces.flow.builder.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 javax.faces.flow.builder.MethodCallBuilderoutcome - A ValueExpression String representing
the default outcome, only used if the method is a void
method or returns null.public javax.faces.flow.builder.MethodCallBuilder defaultOutcome(javax.el.ValueExpression ve)
javax.faces.flow.builder.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 javax.faces.flow.builder.MethodCallBuilderve - A ValueExpression representing
the default outcome, only used if the method is a void
method or returns null.public javax.faces.flow.builder.MethodCallBuilder expression(String methodExpression)
javax.faces.flow.builder.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 javax.faces.flow.builder.MethodCallBuildermethodExpression - The MethodExpression String to invoke.public javax.faces.flow.builder.MethodCallBuilder expression(String methodExpression, Class[] paramTypes)
javax.faces.flow.builder.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 javax.faces.flow.builder.MethodCallBuildermethodExpression - The MethodExpression to invoke.paramTypes - the types of the parameters to the method.public javax.faces.flow.builder.MethodCallBuilder parameters(List<javax.faces.flow.Parameter> parameters)
javax.faces.flow.builder.MethodCallBuilderSet the parameters of the method call node.
parameters in class javax.faces.flow.builder.MethodCallBuilderparameters - the parameters to pass to the method when it is invoked.public javax.faces.flow.builder.MethodCallBuilder expression(javax.el.MethodExpression me)
javax.faces.flow.builder.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 javax.faces.flow.builder.MethodCallBuilderme - The MethodExpression to invoke.public javax.faces.flow.builder.MethodCallBuilder markAsStartNode()
javax.faces.flow.builder.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 javax.faces.flow.builder.NodeBuildermarkAsStartNode in class javax.faces.flow.builder.MethodCallBuilderCopyright © 2010–2024 JBoss by Red Hat. All rights reserved.