Represents a state of a wizard Finite State Machine (FSM).
A base state contains common navigation methods, a concrete state also
contains setters/getters for domain data, relevant to this state.
| Method Summary | |
void |
addOutgoingTransition(IWizardTransition value)
Adds an outgoing transition. |
IWizardTransition |
getIncomingTransition()
Returns the incoming transition, was used to get to this state. |
IWizardTransition |
getOutgoingTransition()
Selects a transition which will be used to move forward from from this state. |
IWizardTransition[] |
getOutgoingTransitions()
Returns array of outgoing transitions for this state. |
java.lang.String |
getStateName()
Returns the name of this state. |
IWizard |
getWizard()
Returns the wizard, which contains this state as part of the wizard sequence. |
boolean |
isCheckpoint()
Returns true if this state has been marked as checkpoint. |
boolean |
isStateInPath()
Verifies that this state is included in the path to the current state. |
void |
resetBooleans()
Instructs the state to clear all its boolean properties. |
void |
setIncomingTransition(IWizardTransition value)
Sets the incoming transition. |
| Method Detail |
public void addOutgoingTransition(IWizardTransition value)
value - outgoing transitionpublic IWizardTransition getIncomingTransition()
public IWizardTransition getOutgoingTransition()
All outgoing transitions are validated in the order of their weight. The first valid transition is chosen.
public IWizardTransition[] getOutgoingTransitions()
public java.lang.String getStateName()
public IWizard getWizard()
public boolean isCheckpoint()
public boolean isStateInPath()
public void resetBooleans()
public void setIncomingTransition(IWizardTransition value)
value - incoming transition