public class ValidateUserState extends AbstractValidationState
Constructor and Description |
---|
ValidateUserState(ConsoleWrapper theConsole,
StateValues stateValues) |
Modifier and Type | Method and Description |
---|---|
protected State |
getSuccessState()
Get the state to transition to once all validation is complete.
|
protected Collection<State> |
getValidationStates()
Get a
Collection containing all states required to perform the validation needed. |
execute
public ValidateUserState(ConsoleWrapper theConsole, StateValues stateValues)
protected Collection<State> getValidationStates()
AbstractValidationState
Collection
containing all states required to perform the validation needed.
On initialisation an Iterator will be created for this collection - each time this state is called the next state
returned by the Iterator will be called to perform validation. Once the Iterator is exhausted the success state will be
returned instead.
If validation fails then it is expected that the individual validation states will transition away from this state, this
is why there is no error or failure state.getValidationStates
in class AbstractValidationState
protected State getSuccessState()
AbstractValidationState
getSuccessState
in class AbstractValidationState
Copyright © 2023 JBoss by Red Hat. All rights reserved.