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 ofList
if it hosts at least one constraint or is marked withValid
.- Since:
- 2.0
- Author:
- Guillaume Smet
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jakarta.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Class<?>
getContainerClass()
Returns the container class hosting this container element type.Integer
getTypeArgumentIndex()
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 Detail
-
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
-
-