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.MethodCallBuilder
If 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.MethodCallBuilder
outcome
- 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.MethodCallBuilder
If 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.MethodCallBuilder
ve
- 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.MethodCallBuilder
Set 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.MethodCallBuilder
methodExpression
- The MethodExpression
String to invoke.public javax.faces.flow.builder.MethodCallBuilder expression(String methodExpression, Class[] paramTypes)
javax.faces.flow.builder.MethodCallBuilder
Set 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.MethodCallBuilder
methodExpression
- 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.MethodCallBuilder
Set the parameters of the method call node.
parameters
in class javax.faces.flow.builder.MethodCallBuilder
parameters
- 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.MethodCallBuilder
Set 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.MethodCallBuilder
me
- The MethodExpression
to invoke.public javax.faces.flow.builder.MethodCallBuilder markAsStartNode()
javax.faces.flow.builder.NodeBuilder
Mark 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.NodeBuilder
markAsStartNode
in class javax.faces.flow.builder.MethodCallBuilder
Copyright © 2010–2019 JBoss by Red Hat. All rights reserved.