Class ValidationOrderGenerator
java.lang.Object
org.hibernate.validator.internal.engine.groups.ValidationOrderGenerator
Helper class used to order groups and sequences into the right order for validation.
- Author:
- Hardy Ferentschik, Kevin Pollet <kevin.pollet@serli.com> (C) 2011 SERLI
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDefaultValidationOrder
(Class<?> clazz, List<Class<?>> defaultGroupSequence) getValidationOrder
(Class<?> group, boolean expand) Creates aValidationOrder
for the given validation group.getValidationOrder
(Collection<Class<?>> groups) Generates a order of groups and sequences for the specified validation groups.toString()
-
Constructor Details
-
ValidationOrderGenerator
public ValidationOrderGenerator()
-
-
Method Details
-
getValidationOrder
Creates aValidationOrder
for the given validation group.- Parameters:
group
- the group to get as orderexpand
- whether the given group should be expanded (i.e. flattened it to its members if it is a sequence or group extending another group) or not- Returns:
- a
ValidationOrder
for the given validation group
-
getValidationOrder
Generates a order of groups and sequences for the specified validation groups.- Parameters:
groups
- the groups specified at the validation call- Returns:
- an instance of
ValidationOrder
defining the order in which validation has to occur
-
getDefaultValidationOrder
public ValidationOrder getDefaultValidationOrder(Class<?> clazz, List<Class<?>> defaultGroupSequence) -
toString
-