Package javax.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 javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
-
Method Summary
Methods inherited from interface javax.validation.metadata.CascadableDescriptor
getGroupConversions, isCascaded
Methods inherited from interface javax.validation.metadata.ContainerDescriptor
getConstrainedContainerElementTypes
Methods inherited from interface javax.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
-