Package jakarta.validation.metadata
Interface ElementDescriptor
- 
- All Known Subinterfaces:
- BeanDescriptor,- ConstructorDescriptor,- ContainerElementTypeDescriptor,- CrossParameterDescriptor,- ExecutableDescriptor,- MethodDescriptor,- ParameterDescriptor,- PropertyDescriptor,- ReturnValueDescriptor
 
 public interface ElementDescriptorDescribes a validated element (class, property, method etc.).- Author:
- Emmanuel Bernard, Hardy Ferentschik, Gunnar Morling
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Interface Description static interfaceElementDescriptor.ConstraintFinderDeclares restrictions on retrieved constraints.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description ElementDescriptor.ConstraintFinderfindConstraints()Finds constraints and potentially restricts them to certain criteria.Set<ConstraintDescriptor<?>>getConstraintDescriptors()Returns all constraint descriptors for this element in the class hierarchy or an emptySetif none are present.Class<?>getElementClass()booleanhasConstraints()
 
- 
- 
- 
Method Detail- 
hasConstraintsboolean hasConstraints() - Returns:
- returns trueif at least one constraint declaration is present for this element in the class hierarchy,falseotherwise
 
 - 
getElementClassClass<?> getElementClass() - Returns:
- the statically defined returned type
 
 - 
getConstraintDescriptorsSet<ConstraintDescriptor<?>> getConstraintDescriptors() Returns all constraint descriptors for this element in the class hierarchy or an emptySetif none are present.- Returns:
- Setof constraint descriptors for this element
 
 - 
findConstraintsElementDescriptor.ConstraintFinder findConstraints() Finds constraints and potentially restricts them to certain criteria.- Returns:
- ConstraintFinderobject
 
 
- 
 
-