Top Description Constructors Methods
org.hibernate.validator.internal.engine

public Class DefaultParameterNameProvider

extends Object
implements ParameterNameProvider
Class Inheritance
All Implemented Interfaces
jakarta.validation.ParameterNameProvider
Imports
java.lang.reflect.Constructor, .Executable, .Method, .Parameter, java.util.ArrayList, .Collections, .List, jakarta.validation.ParameterNameProvider

A default ParameterNameProvider implementation which returns parameter names obtained from the Java reflection API as mandated by the BV specification.
Authors
Hardy Ferentschik, Gunnar Morling

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private List<String>
public List<String>
getParameterNames(Constructor<?>
the constructor for which the parameter names shall be retrieved; never null
constructor
)

Implements jakarta.validation.ParameterNameProvider.getParameterNames.

Returns the names of the parameters of the given constructor.
public List<String>
getParameterNames(Method
the method for which the parameter names shall be retrieved; never null
method
)

Implements jakarta.validation.ParameterNameProvider.getParameterNames.

Returns the names of the parameters of the given method.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

DefaultParameterNameProviderback to summary
public DefaultParameterNameProvider()

Method Detail

doGetParameterNamesback to summary
private List<String> doGetParameterNames(Executable executable)
getParameterNamesback to summary
public List<String> getParameterNames(Constructor<?> constructor)

Implements jakarta.validation.ParameterNameProvider.getParameterNames.

Doc from jakarta.validation.ParameterNameProvider.getParameterNames.

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

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

Implements jakarta.validation.ParameterNameProvider.getParameterNames.

Doc from jakarta.validation.ParameterNameProvider.getParameterNames.

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

Annotations
@Override