Class FlowImpl
- java.lang.Object
-
- jakarta.faces.flow.Flow
-
- com.sun.faces.flow.FlowImpl
-
- All Implemented Interfaces:
Serializable
public class FlowImpl extends Flow implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static FlowABANDONED_FLOWstatic FlowSYNTHESIZED_RETURN_CASE_FLOW
-
Constructor Summary
Constructors Constructor Description FlowImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,FlowCallNode>_getFlowCalls()Map<String,Parameter>_getInboundParameters()List<MethodCallNode>_getMethodCalls()Map<String,Set<NavigationCase>>_getNavigationCases()Map<String,ReturnNode>_getReturns()Map<String,SwitchNode>_getSwitches()List<ViewNode>_getViews()booleanequals(Object obj)StringgetClientWindowFlowId(ClientWindow curWindow)Get theClientWindow's id and append "_" and the return fromFlow.getId().StringgetDefiningDocumentId()Return the immutable application unique identifier for the document in which the argument flow is defined.jakarta.el.MethodExpressiongetFinalizer()Return theMethodExpressionthat must be called by the runtime as the last thing that happens before exiting this flow.FlowCallNodegetFlowCall(Flow targetFlow)Return theFlowCallNodethat represents calling thetargetFlowfrom this flow, ornulliftargetFlowcannot be reached from this flow.Map<String,FlowCallNode>getFlowCalls()Return an immutable data structure containing all the flow call nodes declared for this flow.StringgetId()Return the immutable id for this Flow.Map<String,Parameter>getInboundParameters()Return an immutable data structure containing the inbound parameters that have been declared for this flow.jakarta.el.MethodExpressiongetInitializer()Return theMethodExpressionthat must be called by the runtime immediately after activating anyFlowScopedbeans declared for this flow.List<MethodCallNode>getMethodCalls()Return an immutable data structure containing all the method call nodes declared for this flow.Map<String,Set<NavigationCase>>getNavigationCases()Return an unmodifiable view of the navigation cases within this flow.FlowNodegetNode(String nodeId)Return the genericFlowNodeby id, ornullif not found.Map<String,ReturnNode>getReturns()Return an immutable data structure containing all of the return nodes declared for this flow.StringgetStartNodeId()Return the immutable id for the default node that should be activated when this flow is entered.Map<String,SwitchNode>getSwitches()Return an immutable data structure containing all of the switch nodes declared for this flow.List<ViewNode>getViews()Return an immutable data structure containing all of the view nodes declared for this flow.inthashCode()voidinit(FacesContext context)voidsetFinalizer(jakarta.el.MethodExpression finalizer)voidsetId(String definingDocumentId, String id)voidsetInitializer(jakarta.el.MethodExpression initializer)voidsetStartNodeId(String defaultNodeId)
-
-
-
Method Detail
-
getId
public String getId()
Description copied from class:FlowReturn the immutable id for this Flow. This must be unique within the defining document (such as an Application Configuration Resources file), but need not be unique within the entire application.
-
getDefiningDocumentId
public String getDefiningDocumentId()
Description copied from class:FlowReturn the immutable application unique identifier for the document in which the argument flow is defined.
- Specified by:
getDefiningDocumentIdin classFlow- Returns:
- the defining document id
-
getStartNodeId
public String getStartNodeId()
Description copied from class:FlowReturn the immutable id for the default node that should be activated when this flow is entered.
- Specified by:
getStartNodeIdin classFlow- Returns:
- the id of the start node
-
setStartNodeId
public void setStartNodeId(String defaultNodeId)
-
getFinalizer
public jakarta.el.MethodExpression getFinalizer()
Description copied from class:FlowReturn the
MethodExpressionthat must be called by the runtime as the last thing that happens before exiting this flow. AnyFlowScopedbeans declared for this flow must remain in scope until after control returns from the method referenced by thisMethodExpression.- Specified by:
getFinalizerin classFlow- Returns:
- the
MethodExpresionfor the finalizer.
-
setFinalizer
public void setFinalizer(jakarta.el.MethodExpression finalizer)
-
getInitializer
public jakarta.el.MethodExpression getInitializer()
Description copied from class:FlowReturn the
MethodExpressionthat must be called by the runtime immediately after activating anyFlowScopedbeans declared for this flow.- Specified by:
getInitializerin classFlow- Returns:
- the
MethodExpresionfor the initializer.
-
setInitializer
public void setInitializer(jakarta.el.MethodExpression initializer)
-
getInboundParameters
public Map<String,Parameter> getInboundParameters()
Description copied from class:FlowReturn an immutable data structure containing the inbound parameters that have been declared for this flow. See
FlowHandler.transition(jakarta.faces.context.FacesContext, jakarta.faces.flow.Flow, jakarta.faces.flow.Flow, jakarta.faces.flow.FlowCallNode, java.lang.String)for the specification of how these parameters are used. Inbound parameters are associated with a specific flow instance, while outbound parameters are associated with aFlowCallNodethat causes the transition to a new flow.- Specified by:
getInboundParametersin classFlow- Returns:
- the inbound parameters
-
getViews
public List<ViewNode> getViews()
Description copied from class:FlowReturn an immutable data structure containing all of the view nodes declared for this flow.
-
getReturns
public Map<String,ReturnNode> getReturns()
Description copied from class:FlowReturn an immutable data structure containing all of the return nodes declared for this flow.
- Specified by:
getReturnsin classFlow- Returns:
- the return nodes for this flow.
-
_getReturns
public Map<String,ReturnNode> _getReturns()
-
getSwitches
public Map<String,SwitchNode> getSwitches()
Description copied from class:FlowReturn an immutable data structure containing all of the switch nodes declared for this flow.
- Specified by:
getSwitchesin classFlow- Returns:
- the switch nodes for this flow
-
_getSwitches
public Map<String,SwitchNode> _getSwitches()
-
getFlowCalls
public Map<String,FlowCallNode> getFlowCalls()
Description copied from class:FlowReturn an immutable data structure containing all the flow call nodes declared for this flow.
- Specified by:
getFlowCallsin classFlow- Returns:
- the flow call nodes for this flow
-
_getFlowCalls
public Map<String,FlowCallNode> _getFlowCalls()
-
getNavigationCases
public Map<String,Set<NavigationCase>> getNavigationCases()
Description copied from class:FlowReturn an unmodifiable view of the navigation cases within this flow.
- Specified by:
getNavigationCasesin classFlow- Returns:
- the navigation cases,
-
_getNavigationCases
public Map<String,Set<NavigationCase>> _getNavigationCases()
-
getFlowCall
public FlowCallNode getFlowCall(Flow targetFlow)
Description copied from class:FlowReturn the
FlowCallNodethat represents calling thetargetFlowfrom this flow, ornulliftargetFlowcannot be reached from this flow.- Specified by:
getFlowCallin classFlow- Parameters:
targetFlow- the flow for which theFlowCallNodeis to be returned- Returns:
- a
FlowCallNodefor the argument flow ornull
-
getMethodCalls
public List<MethodCallNode> getMethodCalls()
Description copied from class:FlowReturn an immutable data structure containing all the method call nodes declared for this flow.
- Specified by:
getMethodCallsin classFlow- Returns:
- the method call nodes for this flow
-
_getMethodCalls
public List<MethodCallNode> _getMethodCalls()
-
getNode
public FlowNode getNode(String nodeId)
Description copied from class:FlowReturn the generic
FlowNodeby id, ornullif not found.
-
getClientWindowFlowId
public String getClientWindowFlowId(ClientWindow curWindow)
Description copied from class:FlowGet the
ClientWindow's id and append "_" and the return fromFlow.getId(). Return the result.- Specified by:
getClientWindowFlowIdin classFlow- Parameters:
curWindow- the- Returns:
- the generated client window id for this flow.
-
init
public void init(FacesContext context)
-
-