public class ValidationOrderGenerator extends Object
Constructor and Description |
---|
ValidationOrderGenerator() |
Modifier and Type | Method and Description |
---|---|
ValidationOrder |
getDefaultValidationOrder(Class<?> clazz,
List<Class<?>> defaultGroupSequence) |
ValidationOrder |
getValidationOrder(Class<?> group,
boolean expand)
Creates a
ValidationOrder for the given validation group. |
ValidationOrder |
getValidationOrder(Collection<Class<?>> groups)
Generates a order of groups and sequences for the specified validation groups.
|
String |
toString() |
public ValidationOrder getValidationOrder(Class<?> group, boolean expand)
ValidationOrder
for the given validation group.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 notValidationOrder
for the given validation grouppublic ValidationOrder getValidationOrder(Collection<Class<?>> groups)
groups
- the groups specified at the validation callValidationOrder
defining the order in which validation has to occurpublic ValidationOrder getDefaultValidationOrder(Class<?> clazz, List<Class<?>> defaultGroupSequence)
Copyright © 2017 JBoss by Red Hat. All rights reserved.