Package jakarta.validation.metadata
Interface ParameterDescriptor
-
- All Superinterfaces:
CascadableDescriptor
,ContainerDescriptor
,ElementDescriptor
public interface ParameterDescriptor extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor
Describes a validated method or constructor parameter.- Since:
- 1.1
- Author:
- Gunnar Morling
-
-
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 int
getIndex()
Returns this parameter's index within the parameter array of the method or constructor holding it.java.lang.String
getName()
Returns this parameter's name as retrieved by the current parameter name resolver.-
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
-
getIndex
int getIndex()
Returns this parameter's index within the parameter array of the method or constructor holding it.- Returns:
- this parameter's index
-
getName
java.lang.String getName()
Returns this parameter's name as retrieved by the current parameter name resolver.- Returns:
- this parameter's name
-
-