public abstract class AbstractStateMachine extends Object implements StateMachine
| Modifier and Type | Method and Description |
|---|---|
Form.State |
current() |
<C> void |
execute(Form.Operation operation,
C context) |
protected abstract Form.State |
initial() |
protected abstract String |
name() |
void |
reset() |
protected abstract <C> void |
safeExecute(Form.Operation operation,
C context) |
boolean |
supports(Form.Operation operation) |
boolean |
supports(Form.State state) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecutepublic void reset()
reset in interface StateMachineprotected abstract Form.State initial()
public Form.State current()
current in interface StateMachinepublic boolean supports(Form.State state)
supports in interface StateMachinepublic boolean supports(Form.Operation operation)
supports in interface StateMachinepublic <C> void execute(Form.Operation operation, C context)
execute in interface StateMachineprotected abstract <C> void safeExecute(Form.Operation operation, C context)
@NonNls protected abstract String name()
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.