Class ElementDescriptorImpl
java.lang.Object
org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
- All Implemented Interfaces:
ElementDescriptor,Serializable
- Direct Known Subclasses:
BeanDescriptorImpl,ClassDescriptorImpl,ContainerElementTypeDescriptorImpl,CrossParameterDescriptorImpl,ExecutableDescriptorImpl,ParameterDescriptorImpl,PropertyDescriptorImpl,ReturnValueDescriptorImpl
public abstract class ElementDescriptorImpl
extends Object
implements ElementDescriptor, Serializable
Describes a validated element (class, field or property).
- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder -
Constructor Summary
ConstructorsConstructorDescriptionElementDescriptorImpl(Type type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence) -
Method Summary
Modifier and TypeMethodDescriptionFinds constraints and potentially restricts them to certain criteria.final Set<ConstraintDescriptor<?>>Returns all constraint descriptors for this element in the class hierarchy or an emptySetif none are present.final Class<?>final boolean
-
Constructor Details
-
ElementDescriptorImpl
public ElementDescriptorImpl(Type type, Set<ConstraintDescriptorImpl<?>> constraintDescriptors, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
-
-
Method Details
-
hasConstraints
public final boolean hasConstraints()- Specified by:
hasConstraintsin interfaceElementDescriptor- Returns:
- returns
trueif at least one constraint declaration is present for this element in the class hierarchy,falseotherwise
-
getElementClass
- Specified by:
getElementClassin interfaceElementDescriptor- Returns:
- the statically defined returned type
-
getConstraintDescriptors
Description copied from interface:ElementDescriptorReturns all constraint descriptors for this element in the class hierarchy or an emptySetif none are present.- Specified by:
getConstraintDescriptorsin interfaceElementDescriptor- Returns:
Setof constraint descriptors for this element
-
findConstraints
Description copied from interface:ElementDescriptorFinds constraints and potentially restricts them to certain criteria.- Specified by:
findConstraintsin interfaceElementDescriptor- Returns:
ConstraintFinderobject
-