Package jakarta.validation.metadata
Interface ContainerElementTypeDescriptor
- All Superinterfaces:
CascadableDescriptor
,ContainerDescriptor
,ElementDescriptor
public interface ContainerElementTypeDescriptor
extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor
Describes a validated container element type, e.g. the element type of
List
if it
hosts at least one constraint or is marked with Valid
.- Since:
- 2.0
- Author:
- Guillaume Smet
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>
Returns the container class hosting this container element type.Returns the index of the type argument corresponding to this container element type.Methods inherited from interface jakarta.validation.metadata.CascadableDescriptor
getGroupConversions, isCascaded
Methods inherited from interface jakarta.validation.metadata.ContainerDescriptor
getConstrainedContainerElementTypes
Methods inherited from interface jakarta.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
-
Method Details
-
getTypeArgumentIndex
Integer getTypeArgumentIndex()Returns the index of the type argument corresponding to this container element type.- Returns:
- the index of the type argument corresponding to this container element type
-
getContainerClass
Class<?> getContainerClass()Returns the container class hosting this container element type.- Returns:
- the container class hosting this container element type
-