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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ValidationOrderAValidationOrderwhich contains a single group,Default.static final ValidationOrderAValidationOrderwhich contains a single sequence which in turn contains a single group,Default. -
Method Summary
Modifier and TypeMethodDescriptionvoidassertDefaultGroupSequenceIsExpandable(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
AValidationOrderwhich contains a single group,Default. -
DEFAULT_SEQUENCE
AValidationOrderwhich 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 casedefaultGroupSequencecannot be expanded into one of the group sequences which need to be validated
-