X
- public interface TransitionVisitor<X>
TransitionVisitor
. This returns a
FormResult
that encodes the new view/display state that should be implemented by a FormResultVisitor
.
The visitor pattern is used to ensure an explicit dependency between the types of Transition
and the code that
has to implement logic on them. Any additional Transition
sub-types will either extend an existing type and use its implementation method
or require a change to the visitor interface.Modifier and Type | Method and Description |
---|---|
FormResult |
doDirectTargetlessTransition(DirectTargetlessTransition<X> t) |
FormResult |
doDirectTransition(DirectTransition<X> t) |
FormResult |
doFormTransition(FormTransition<X> t) |
FormResult |
doTargetLessTransition(TargetLessTransition<X> t) |
FormResult |
doValidatingFormTransition(ValidatingFormTransition<X> t) |
FormResult doDirectTransition(DirectTransition<X> t) throws TransitionException
TransitionException
FormResult doDirectTargetlessTransition(DirectTargetlessTransition<X> t) throws TransitionException
TransitionException
FormResult doFormTransition(FormTransition<X> t) throws TransitionException
TransitionException
FormResult doValidatingFormTransition(ValidatingFormTransition<X> t) throws TransitionException
TransitionException
FormResult doTargetLessTransition(TargetLessTransition<X> t) throws TransitionException
TransitionException