public static class ValidationGroupsMetadata.Builder extends Object
ValidationGroupsMetadata
Modifier and Type | Method and Description |
---|---|
ValidationGroupsMetadata.Builder |
addGroup(Class<?> group,
Class<?>... parents)
Adds a group to the inheritance map.
|
ValidationGroupsMetadata.Builder |
addSequence(Class<?> groupSequence,
Class<?>... sequenceGroups)
Adds a group sequence to the sequence map.
|
ValidationGroupsMetadata |
build() |
public ValidationGroupsMetadata.Builder addGroup(Class<?> group, Class<?>... parents)
group
- The validation group to add.parents
- A list of validation groups which group
extends. Can be empty if the
group contains no parents.public ValidationGroupsMetadata.Builder addSequence(Class<?> groupSequence, Class<?>... sequenceGroups)
groupSequence
- The class representing the sequence (annotated with @GroupSequence)sequenceGroups
- The groups in the sequence.public ValidationGroupsMetadata build()
Copyright © 2018. All rights reserved.