public class FlowImpl extends Flow implements Serializable
Modifier and Type | Field and Description |
---|---|
static Flow |
ABANDONED_FLOW |
static Flow |
SYNTHESIZED_RETURN_CASE_FLOW |
Constructor and Description |
---|
FlowImpl() |
Modifier and Type | Method and 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() |
boolean |
equals(Object obj) |
String |
getClientWindowFlowId(ClientWindow curWindow)
Get the |
String |
getDefiningDocumentId()
Return the immutable application unique identifier for the document in which the argument flow is defined. |
javax.el.MethodExpression |
getFinalizer()
Return the |
FlowCallNode |
getFlowCall(Flow targetFlow)
Return the |
Map<String,FlowCallNode> |
getFlowCalls()
Return an immutable data structure containing all the flow call nodes declared for this flow. |
String |
getId()
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. |
javax.el.MethodExpression |
getInitializer()
Return the |
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. |
FlowNode |
getNode(String nodeId)
Return the generic |
Map<String,ReturnNode> |
getReturns()
Return an immutable data structure containing all of the return nodes declared for this flow. |
String |
getStartNodeId()
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. |
int |
hashCode() |
void |
init(FacesContext context) |
void |
setFinalizer(javax.el.MethodExpression finalizer) |
void |
setId(String definingDocumentId,
String id) |
void |
setInitializer(javax.el.MethodExpression initializer) |
void |
setStartNodeId(String defaultNodeId) |
public static final Flow SYNTHESIZED_RETURN_CASE_FLOW
public static final Flow ABANDONED_FLOW
public String getId()
Flow
Return 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.
public String getDefiningDocumentId()
Flow
Return the immutable application unique identifier for the document in which the argument flow is defined.
getDefiningDocumentId
in class Flow
public String getStartNodeId()
Flow
Return the immutable id for the default node that should be activated when this flow is entered.
getStartNodeId
in class Flow
public void setStartNodeId(String defaultNodeId)
public javax.el.MethodExpression getFinalizer()
Flow
Return the MethodExpression
that must be called by the runtime as the last thing that happens
before exiting this flow. Any FlowScoped
beans declared
for this flow must remain in scope until after control returns
from the method referenced by this MethodExpression
.
getFinalizer
in class Flow
MethodExpresion
for the finalizer.public void setFinalizer(javax.el.MethodExpression finalizer)
public javax.el.MethodExpression getInitializer()
Flow
Return the MethodExpression
that must be called by the runtime immediately after activating
any FlowScoped
beans declared for this flow.
getInitializer
in class Flow
MethodExpresion
for the initializer.public void setInitializer(javax.el.MethodExpression initializer)
public Map<String,Parameter> getInboundParameters()
Flow
Return an immutable data structure
containing the inbound parameters that have been declared for
this flow. See FlowHandler.transition(javax.faces.context.FacesContext, javax.faces.flow.Flow, javax.faces.flow.Flow, javax.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 a FlowCallNode
that causes the transition to a new flow.
getInboundParameters
in class Flow
public List<ViewNode> getViews()
Flow
Return an immutable data structure containing all of the view nodes declared for this flow.
public Map<String,ReturnNode> getReturns()
Flow
Return an immutable data structure containing all of the return nodes declared for this flow.
getReturns
in class Flow
public Map<String,ReturnNode> _getReturns()
public Map<String,SwitchNode> getSwitches()
Flow
Return an immutable data structure containing all of the switch nodes declared for this flow.
getSwitches
in class Flow
public Map<String,SwitchNode> _getSwitches()
public Map<String,FlowCallNode> getFlowCalls()
Flow
Return an immutable data structure containing all the flow call nodes declared for this flow.
getFlowCalls
in class Flow
public Map<String,FlowCallNode> _getFlowCalls()
public Map<String,Set<NavigationCase>> getNavigationCases()
Flow
Return an unmodifiable view of the navigation cases within this flow.
getNavigationCases
in class Flow
public Map<String,Set<NavigationCase>> _getNavigationCases()
public FlowCallNode getFlowCall(Flow targetFlow)
Flow
Return the FlowCallNode
that
represents calling the targetFlow
from this flow, or
null
if targetFlow
cannot be reached from this
flow.
getFlowCall
in class Flow
targetFlow
- the flow for which the FlowCallNode
is to be returnedFlowCallNode
for the argument flow or null
public List<MethodCallNode> getMethodCalls()
Flow
Return an immutable data structure containing all the method call nodes declared for this flow.
getMethodCalls
in class Flow
public List<MethodCallNode> _getMethodCalls()
public FlowNode getNode(String nodeId)
Flow
Return the generic FlowNode
by id,
or null
if not found.
public String getClientWindowFlowId(ClientWindow curWindow)
Flow
Get the ClientWindow
's id and
append "_" and the return from Flow.getId()
. Return the result.
getClientWindowFlowId
in class Flow
curWindow
- thepublic void init(FacesContext context)
Comments to: faces-dev@eclipse.org.
Copyright © 2019 Eclipse Foundation. All rights reserved.
Use is subject to license terms.