- All Implemented Interfaces:
NodeBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionIf the method is a void method, or the method returnsnull
, this can be used to specify what value should be passed to runtime when the method returns.defaultOutcome
(String outcome) If the method is a void method, or the method returnsnull
, this can be used to specify what value should be passed to runtime when the method returns.Set the method expression of this method call node.expression
(String methodExpression) Set the method expression of this method call node.expression
(String methodExpression, Class[] paramTypes) Set the method expression of this method call node.Mark this node as the start node in the flow.parameters
(List<Parameter> parameters) Set the parameters of the method call node.
-
Constructor Details
-
MethodCallBuilderImpl
-
-
Method Details
-
defaultOutcome
Description copied from class: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.- Specified by:
defaultOutcome
in classMethodCallBuilder
- Parameters:
outcome
- AValueExpression
String representing the default outcome, only used if the method is a void method or returnsnull
.- Returns:
- the builder instance
-
defaultOutcome
Description copied from class: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.- Specified by:
defaultOutcome
in classMethodCallBuilder
- Parameters:
ve
- AValueExpression
representing the default outcome, only used if the method is a void method or returnsnull
.- Returns:
- the builder instance
-
expression
Description copied from class: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 theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
methodExpression
- TheMethodExpression
String to invoke.- Returns:
- the builder instance
-
expression
Description copied from class: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 theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
methodExpression
- TheMethodExpression
to invoke.paramTypes
- the types of the parameters to the method.- Returns:
- the builder instance
-
parameters
Description copied from class:MethodCallBuilder
Set the parameters of the method call node.
- Specified by:
parameters
in classMethodCallBuilder
- Parameters:
parameters
- the parameters to pass to the method when it is invoked.- Returns:
- the builder instance
-
expression
Description copied from class: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 theMethodCallBuilder.parameters(java.util.List<jakarta.faces.flow.Parameter>)
method.- Specified by:
expression
in classMethodCallBuilder
- Parameters:
me
- TheMethodExpression
to invoke.- Returns:
- the builder instance
-
markAsStartNode
Description copied from interface: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.
- Specified by:
markAsStartNode
in interfaceNodeBuilder
- Specified by:
markAsStartNode
in classMethodCallBuilder
- Returns:
- the builder instance
-