Class GroupChain

java.lang.Object
de.knightsoftnet.validators.client.impl.GroupChain

public final class GroupChain extends Object
An instance of GroupChain defines the group order during one full validation call.

Modified from the Hibernate validator for use with GWT.

  • Constructor Details

    • GroupChain

      public GroupChain()
  • Method Details

    • checkDefaultGroupSequenceIsExpandable

      public void checkDefaultGroupSequenceIsExpandable(List<Class<?>> defaultGroupSequence) throws javax.validation.GroupDefinitionException
      check if default group sequence is expandable.
      Parameters:
      defaultGroupSequence - list of group classes
      Throws:
      javax.validation.GroupDefinitionException - if it's no default group
    • getAllGroups

      public Collection<Group> getAllGroups()
    • getGroupIterator

      public Iterator<Group> getGroupIterator()
    • getSequenceIterator

      public Iterator<List<Group>> getSequenceIterator()
    • insertGroup

      public void insertGroup(Group group)
      insert a single group.
      Parameters:
      group - to add
    • insertSequence

      public void insertSequence(List<Group> groups)
      insert a sequence (list) of groups.
      Parameters:
      groups - list of groups to add
    • toString

      public String toString()
      Overrides:
      toString in class Object