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
-
Nested Class Summary
Nested classes/interfaces inherited from interface jakarta.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
-
Method Summary
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
-
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
String getName()Returns this parameter's name as retrieved by the current parameter name resolver.- Returns:
- this parameter's name
-