Package jakarta.faces.flow.builder
Class ReturnBuilder
java.lang.Object
jakarta.faces.flow.builder.ReturnBuilder
- All Implemented Interfaces:
NodeBuilder
Create a return node in the current Flow.
- Since:
- 2.2
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ReturnBuilderfromOutcome(ValueExpression outcome) Set the outcome of the current return node.abstract ReturnBuilderfromOutcome(String outcome) Set the outcome of the current return node.abstract ReturnBuilderMark this node as the start node in the flow.
-
Constructor Details
-
ReturnBuilder
public ReturnBuilder()
-
-
Method Details
-
fromOutcome
Set the outcome of the current return node.
- Parameters:
outcome- AValueExpressionStringStringthat will be the outcome of the return.- Returns:
- the builder instance
- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
fromOutcome
Set the outcome of the current return node.
- Parameters:
outcome- AValueExpressionStringthat will be the outcome of the return.- Returns:
- the builder instance
- Throws:
NullPointerException- if any of the parameters arenull- Since:
- 2.2
-
markAsStartNode
Description copied from interface: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.
- Specified by:
markAsStartNodein interfaceNodeBuilder- Returns:
- the builder instance
-