Top Description Methods
org.hibernate.validator.internal.metadata.aggregated

public Interface ConstraintMetaData

extends Iterable<MetaConstraint<?>>
Known Direct Implementers
org.hibernate.validator.internal.metadata.aggregated.AbstractConstraintMetaData
Imports
java.lang.reflect.Type, java.util.List, jakarta.validation.ElementKind, jakarta.validation.metadata.ElementDescriptor, org.hibernate.validator.internal.metadata.core.MetaConstraint

An aggregated view of the constraint related meta data for a given bean/type element and all the elements in the inheritance hierarchy which it overrides or implements.
Author
Gunnar Morling

Method Summary

Modifier and TypeMethod and Description
public ElementDescriptor

Returns:

This meta data object's corresponding descriptor model representation. Implementations should return a specific sub type of ElementDescriptor.
asDescriptor
(boolean
Whether the bean hosting the represented element has a redefined default group sequence or not.
defaultGroupSequenceRedefined
,
List<Class<?>>
The default group sequence of the bean hosting the represented element.
defaultGroupSequence
)

Returns this meta data object's corresponding representation in the descriptor model.

public ElementKind

Returns:

The kind of this meta data object.
getKind
()

Returns the kind of this meta data object.

public String

Returns:

This meta data object's name.
getName
()

Returns the name of this meta data object.

public Type

Returns:

This meta data object's type.
getType
()

Returns the data type of this meta data object, e.g. the type of a bean property or the return type of a method.

public boolean

Returns:

trueif this object is marked for cascaded validation, false otherwise.
isCascading
()

Whether this meta data object is marked for cascaded validation or not.

public boolean

Returns:

true if this object is marked for cascaded validation or has any constraints, false otherwise.
isConstrained
()

Whether this meta data object is constrained by any means or not.

Inherited from java.lang.Iterable:
forEachiteratorspliterator

Method Detail

asDescriptorback to summary
public ElementDescriptor asDescriptor(boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)

Returns this meta data object's corresponding representation in the descriptor model.

Parameters
defaultGroupSequenceRedefined:boolean

Whether the bean hosting the represented element has a redefined default group sequence or not.

defaultGroupSequence:List<Class<?>>

The default group sequence of the bean hosting the represented element.

Returns:ElementDescriptor

This meta data object's corresponding descriptor model representation. Implementations should return a specific sub type of ElementDescriptor.

getKindback to summary
public ElementKind getKind()

Returns the kind of this meta data object.

Returns:ElementKind

The kind of this meta data object.

getNameback to summary
public String getName()

Returns the name of this meta data object.

Returns:String

This meta data object's name.

getTypeback to summary
public Type getType()

Returns the data type of this meta data object, e.g. the type of a bean property or the return type of a method.

Returns:Type

This meta data object's type.

isCascadingback to summary
public boolean isCascading()

Whether this meta data object is marked for cascaded validation or not.

Returns:boolean

trueif this object is marked for cascaded validation, false otherwise.

isConstrainedback to summary
public boolean isConstrained()

Whether this meta data object is constrained by any means or not.

Returns:boolean

true if this object is marked for cascaded validation or has any constraints, false otherwise.