org.hibernate.validator.internal.engine.groups

## Class DefaultValidationOrder

- java.lang.Object
- - org.hibernate.validator.internal.engine.groups.DefaultValidationOrder

- All Implemented Interfaces:
    ValidationOrder

      public final class DefaultValidationOrder
      extends Object
      implements ValidationOrder

  An instance of `ValidationOrder` defines the group order during one validation call.
  Author:
    Hardy Ferentschik

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultValidationOrder()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `assertDefaultGroupSequenceIsExpandable(List<Class<?>> defaultGroupSequence)` Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.
    `Iterator<Group>` | `getGroupIterator()`
    `Iterator<Sequence>` | `getSequenceIterator()`
    `void` | `insertGroup(Group group)`
    `void` | `insertSequence(Sequence sequence)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultValidationOrder

          public DefaultValidationOrder()

  - ### Method Detail

    - #### getGroupIterator

          public Iterator<Group> getGroupIterator()

      Specified by:
        `getGroupIterator` in interface `ValidationOrder`

    - #### getSequenceIterator

          public Iterator<Sequence> getSequenceIterator()

      Specified by:
        `getSequenceIterator` in interface `ValidationOrder`

    - #### insertGroup

          public void insertGroup(Group group)

    - #### insertSequence

          public void insertSequence(Sequence sequence)

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### assertDefaultGroupSequenceIsExpandable

          public void assertDefaultGroupSequenceIsExpandable(List<Class<?>> defaultGroupSequence)
                                                      throws GroupDefinitionException

      Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.
      Specified by:
        `assertDefaultGroupSequenceIsExpandable` in interface `ValidationOrder`
      Parameters:
        `defaultGroupSequence` - the default group sequence of the bean currently validated
      Throws:
        `GroupDefinitionException` - in case `defaultGroupSequence` cannot be expanded into one of the group sequences which need to be validated

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved