public class ValidationGroupsMetadata extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ValidationGroupsMetadata.Builder
Builder for
ValidationGroupsMetadata |
Modifier and Type | Method and Description |
---|---|
static ValidationGroupsMetadata.Builder |
builder()
Creates a builder populated only with the
Default group. |
boolean |
containsGroup(Class<?> group)
Checks if a given group has been added to the inheritance map.
|
boolean |
equals(Object other) |
Set<Class<?>> |
findAllExtendedGroups(Collection<Class<?>> baseGroups)
Finds all of the validation groups extended by an intial set of groups.
|
Set<Class<?>> |
getAllGroupsAndSequences()
Recursively gets all of the groups and sequence groups in the map (children and parents alike)
in one flat set.
|
Set<Class<?>> |
getGroupSequences()
Returns all the known group sequence classes.
|
Set<Class<?>> |
getParentsOfGroup(Class<?> group)
If the group has been added to the map then its parent groups (of one level above) are
retrieved.
|
Set<Class<?>> |
getRootGroups()
Returns all of the groups added to the map (but not their parents).
|
List<Class<?>> |
getSequenceList(Class<?> sequence)
If the sequence class has been added to the map then the actual sequence list is retrieved.
|
int |
hashCode() |
boolean |
hasParents(Class<?> group)
Checks if a group extends other groups (has parents).
|
boolean |
isInheritanceMapEmpty() |
boolean |
isSeqeuence(Class<?> sequence)
Checks if a given class is a group sequence map.
|
boolean |
isSequenceMapEmpty() |
String |
toString() |
public static ValidationGroupsMetadata.Builder builder()
Default
group.public boolean containsGroup(Class<?> group)
public Set<Class<?>> findAllExtendedGroups(Collection<Class<?>> baseGroups) throws IllegalArgumentException
baseGroups
- The initial set of groups to find parents of. These groups must have been
added to the inheritance map already.IllegalArgumentException
- If an initial group has not been added to the map before
calling this method.public Set<Class<?>> getAllGroupsAndSequences()
public Set<Class<?>> getGroupSequences()
public Set<Class<?>> getParentsOfGroup(Class<?> group)
public Set<Class<?>> getRootGroups()
public List<Class<?>> getSequenceList(Class<?> sequence)
public boolean hasParents(Class<?> group)
public boolean isInheritanceMapEmpty()
public boolean isSeqeuence(Class<?> sequence)
public boolean isSequenceMapEmpty()
Copyright © 2016. All rights reserved.