Top Description Fields Constructors Methods
org.hibernate.validator.internal.engine.groups

public final Class DefaultValidationOrder

extends Object
implements ValidationOrder
Class Inheritance
All Implemented Interfaces
org.hibernate.validator.internal.engine.groups.ValidationOrder
Imports
java.lang.invoke.MethodHandles, java.util.ArrayList, .Collections, .Iterator, .List, .Map, jakarta.validation.GroupDefinitionException, org.hibernate.validator.internal.util.CollectionHelper, org.hibernate.validator.internal.util.logging.Log, .LoggerFactory

An instance of ValidationOrder defines the group order during one validation call.
Authors
Hardy Ferentschik, Guillaume Smet

Field Summary

Modifier and TypeField and Description
private List<Group>
groupList

The list of single groups to be used this validation.

private static final Log
private Map<Class<?>, Sequence>
sequenceMap

The different sequences for this validation.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
assertDefaultGroupSequenceIsExpandable(List<Class<?>>
the default group sequence of the bean currently validated
defaultGroupSequence
)

Implements org.hibernate.validator.internal.engine.groups.ValidationOrder.assertDefaultGroupSequenceIsExpandable.

Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.
private List<Group>
buildTempGroupList(List<Class<?>> defaultGroupSequence)

private void
ensureDefaultGroupSequenceIsExpandable(List<Group> groupList, List<Group> defaultGroupList, int defaultGroupIndex)

public Iterator<Group>
public Iterator<Sequence>
public void
public void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

groupListback to summary
private List<Group> groupList

The list of single groups to be used this validation.

LOGback to summary
private static final Log LOG
sequenceMapback to summary
private Map<Class<?>, Sequence> sequenceMap

The different sequences for this validation. The map contains the sequences mapped to their sequence name.

Constructor Detail

DefaultValidationOrderback to summary
public DefaultValidationOrder()

Method Detail

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

Implements org.hibernate.validator.internal.engine.groups.ValidationOrder.assertDefaultGroupSequenceIsExpandable.

Asserts that the default group sequence of the validated bean can be expanded into the sequences which needs to be validated.

Parameters
defaultGroupSequence:List<Class<?>>

the default group sequence of the bean currently validated

Annotations
@Override
Exceptions
GroupDefinitionException:
in case defaultGroupSequence cannot be expanded into one of the group sequences which need to be validated
buildTempGroupListback to summary
private List<Group> buildTempGroupList(List<Class<?>> defaultGroupSequence)
ensureDefaultGroupSequenceIsExpandableback to summary
private void ensureDefaultGroupSequenceIsExpandable(List<Group> groupList, List<Group> defaultGroupList, int defaultGroupIndex)
getGroupIteratorback to summary
public Iterator<Group> getGroupIterator()

Implements org.hibernate.validator.internal.engine.groups.ValidationOrder.getGroupIterator.

Annotations
@Override
getSequenceIteratorback to summary
public Iterator<Sequence> getSequenceIterator()

Implements org.hibernate.validator.internal.engine.groups.ValidationOrder.getSequenceIterator.

Annotations
@Override
insertGroupback to summary
public void insertGroup(Group group)
insertSequenceback to summary
public void insertSequence(Sequence sequence)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override