Top Description Methods
jakarta.validation.metadata

public Interface ParameterDescriptor

extends ElementDescriptor, CascadableDescriptor, ContainerDescriptor

Describes a validated method or constructor parameter.
Author
Gunnar Morling
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

this parameter's index
getIndex
()

Returns this parameter's index within the parameter array of the method or constructor holding it.

public String

Returns:

this parameter's name
getName
()

Returns this parameter's name as retrieved by the current parameter name resolver.

Inherited from jakarta.validation.metadata.CascadableDescriptor:
getGroupConversionsisCascaded
Inherited from jakarta.validation.metadata.ContainerDescriptor:
getConstrainedContainerElementTypes
Inherited from jakarta.validation.metadata.ElementDescriptor:
findConstraintsgetConstraintDescriptorsgetElementClasshasConstraints

Method Detail

getIndexback to summary
public int getIndex()

Returns this parameter's index within the parameter array of the method or constructor holding it.

Returns:int

this parameter's index

getNameback to summary
public String getName()

Returns this parameter's name as retrieved by the current parameter name resolver.

Returns:String

this parameter's name