Package org.jboss.hal.ballroom.form
Class AbstractStateMachine
- java.lang.Object
-
- org.jboss.hal.ballroom.form.AbstractStateMachine
-
- All Implemented Interfaces:
StateMachine
- Direct Known Subclasses:
AddOnlyStateMachine,ExistingStateMachine,ReadOnlyStateMachine,SingletonStateMachine
public abstract class AbstractStateMachine extends Object implements StateMachine
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Form.Statecurrent()<C> voidexecute(Form.Operation operation, C context)voidreset()booleansupports(Form.Operation operation)booleansupports(Form.State state)-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.hal.ballroom.form.StateMachine
execute
-
-
-
-
Method Detail
-
reset
public void reset()
- Specified by:
resetin interfaceStateMachine
-
current
public Form.State current()
- Specified by:
currentin interfaceStateMachine
-
supports
public boolean supports(Form.State state)
- Specified by:
supportsin interfaceStateMachine
-
supports
public boolean supports(Form.Operation operation)
- Specified by:
supportsin interfaceStateMachine
-
execute
public <C> void execute(Form.Operation operation, C context)
- Specified by:
executein interfaceStateMachine
-
-