org.apache.bval.jsr303.groups
Class Groups

java.lang.Object
  extended by org.apache.bval.jsr303.groups.Groups

public class Groups
extends Object

Defines the order to validate groups during validation. with some inspiration from reference implementation

Author:
Roman Stumm

Field Summary
protected  List<Group> groups
          The list of single groups.
protected  List<List<Group>> sequences
          The list of sequences.
 
Constructor Summary
Groups()
           
 
Method Summary
 void assertDefaultGroupSequenceIsExpandable(List<Group> defaultGroups)
          Assert that the default group can be expanded to defaultGroups.
 List<Group> getGroups()
          Get the Groups.
 List<List<Group>> getSequences()
          Get the Group sequences.
(package private)  void insertGroup(Group group)
          Insert a Group.
(package private)  void insertSequence(List<Group> groups)
          Insert a sequence.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groups

protected List<Group> groups
The list of single groups.


sequences

protected List<List<Group>> sequences
The list of sequences.

Constructor Detail

Groups

public Groups()
Method Detail

getGroups

public List<Group> getGroups()
Get the Groups.

Returns:
List of Group.

getSequences

public List<List<Group>> getSequences()
Get the Group sequences.

Returns:
List of List of Group

insertGroup

void insertGroup(Group group)
Insert a Group.

Parameters:
group - to insert

insertSequence

void insertSequence(List<Group> groups)
Insert a sequence.

Parameters:
groups - List of Group to insert

assertDefaultGroupSequenceIsExpandable

public void assertDefaultGroupSequenceIsExpandable(List<Group> defaultGroups)
Assert that the default group can be expanded to defaultGroups.

Parameters:
defaultGroups -


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.