org.hibernate.validator.internal.engine

## Class DefaultParameterNameProvider

- java.lang.Object
- - org.hibernate.validator.internal.engine.DefaultParameterNameProvider

- All Implemented Interfaces:
    ParameterNameProvider

      public class DefaultParameterNameProvider
      extends Object
      implements ParameterNameProvider

  A default `ParameterNameProvider` implementation which returns parameter names in the form `arg0`, `arg1` etc. as defined by the BV specification.
  Author:
    Hardy Ferentschik, Gunnar Morling

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DefaultParameterNameProvider()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `List<String>` | `getParameterNames(Constructor<?> constructor)`
    `List<String>` | `getParameterNames(Method method)`
    `protected String` | `getPrefix()` Returns the prefix to be used for parameter names.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DefaultParameterNameProvider

          public DefaultParameterNameProvider()

  - ### Method Detail

    - #### getParameterNames

          public List<String> getParameterNames(Constructor<?> constructor)

      Specified by:
        `getParameterNames` in interface `ParameterNameProvider`

    - #### getParameterNames

          public List<String> getParameterNames(Method method)

      Specified by:
        `getParameterNames` in interface `ParameterNameProvider`

    - #### getPrefix

          protected String getPrefix()

      Returns the prefix to be used for parameter names. Defaults to `arg` as per the spec. Can be overridden to create customized name providers.
      Returns:
        The prefix to be used for parameter names.

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved