Interface ValidationOrder
- All Known Implementing Classes:
DefaultValidationOrder
,ValidationOrder.DefaultGroupValidationOrder
,ValidationOrder.DefaultSequenceValidationOrder
public interface ValidationOrder
Interface defining the methods needed to execute groups and sequences in the right order.
- Author:
- Hardy Ferentschik, Guillaume Smet
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ValidationOrder
AValidationOrder
which contains a single group,Default
.static final ValidationOrder
AValidationOrder
which contains a single sequence which in turn contains a single group,Default
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
assertDefaultGroupSequenceIsExpandable
(List<Class<?>> defaultGroupSequence) Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.
-
Field Details
-
DEFAULT_GROUP
AValidationOrder
which contains a single group,Default
. -
DEFAULT_SEQUENCE
AValidationOrder
which contains a single sequence which in turn contains a single group,Default
.
-
-
Method Details
-
getGroupIterator
-
getSequenceIterator
-
assertDefaultGroupSequenceIsExpandable
void assertDefaultGroupSequenceIsExpandable(List<Class<?>> defaultGroupSequence) throws GroupDefinitionException Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.- Parameters:
defaultGroupSequence
- the default group sequence of the bean currently validated- Throws:
GroupDefinitionException
- in casedefaultGroupSequence
cannot be expanded into one of the group sequences which need to be validated
-