Package org.apache.bval.jsr.groups
Class Groups
- java.lang.Object
-
- org.apache.bval.jsr.groups.Groups
-
public class Groups extends Object
Defines the order to validate groups during validation. with some inspiration from reference implementation- Author:
- Roman Stumm
-
-
Constructor Summary
Constructors Constructor Description Groups()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) void
assertDefaultGroupSequenceIsExpandable(List<Group> defaultGroups)
Assert that the default group can be expanded todefaultGroups
.GroupStrategy
asStrategy()
Set<Group>
getGroups()
Get the Groups.Collection<Group.Sequence>
getSequences()
Get the Group sequences.(package private) boolean
insertGroup(Group group)
Insert aGroup
.(package private) boolean
insertSequence(Collection<Group> groups)
Insert a sequence.
-
-
-
Method Detail
-
getSequences
public Collection<Group.Sequence> getSequences()
Get the Group sequences.- Returns:
List
ofGroup.Sequence
-
insertGroup
boolean insertGroup(Group group)
Insert aGroup
.- Parameters:
group
- to insert- Returns:
- success
-
insertSequence
boolean insertSequence(Collection<Group> groups)
Insert a sequence.
-
assertDefaultGroupSequenceIsExpandable
void assertDefaultGroupSequenceIsExpandable(List<Group> defaultGroups)
Assert that the default group can be expanded todefaultGroups
. Package-private method intended for unit tests.- Parameters:
defaultGroups
-
-
asStrategy
public GroupStrategy asStrategy()
-
-