Top Description Methods
jakarta.validation

public Interface ParameterNameProvider

Imports
java.lang.reflect.Constructor, .Method, java.util.List

Provides names for method and constructor parameters.

Used by the Jakarta Bean Validation runtime when creating constraint violation objects for violated method constraints.

Implementations must be thread-safe.

Author
Gunnar Morling
Since
1.1

Method Summary

Modifier and TypeMethod and Description
public List<String>

Returns:

a list containing the names of the parameters of the given constructor; may be empty but never null
getParameterNames
(Constructor<?>
the constructor for which the parameter names shall be retrieved; never null
constructor
)

Returns the names of the parameters of the given constructor.

public List<String>

Returns:

a list containing the names of the parameters of the given method; may be empty but never null
getParameterNames
(Method
the method for which the parameter names shall be retrieved; never null
method
)

Returns the names of the parameters of the given method.

Method Detail

getParameterNamesback to summary
public List<String> getParameterNames(Constructor<?> constructor)

Returns the names of the parameters of the given constructor.

Parameters
constructor:Constructor<?>

the constructor for which the parameter names shall be retrieved; never null

Returns:List<String>

a list containing the names of the parameters of the given constructor; may be empty but never null

getParameterNamesback to summary
public List<String> getParameterNames(Method method)

Returns the names of the parameters of the given method.

Parameters
method:Method

the method for which the parameter names shall be retrieved; never null

Returns:List<String>

a list containing the names of the parameters of the given method; may be empty but never null