javax.validation.metadata

## Interface ParameterDescriptor

- All Superinterfaces:
    CascadableDescriptor, ElementDescriptor

      public interface ParameterDescriptor
      extends ElementDescriptor, CascadableDescriptor

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

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor

      `ElementDescriptor.ConstraintFinder`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `getIndex()` Returns this parameter's index within the parameter array of the method or constructor holding it.
    `String` | `getName()` Returns this parameter's name as retrieved by the current parameter name resolver.

    - ### Methods inherited from interface javax.validation.metadata.ElementDescriptor

      `findConstraints, getConstraintDescriptors, getElementClass, hasConstraints`

    - ### Methods inherited from interface javax.validation.metadata.CascadableDescriptor

      `getGroupConversions, isCascaded`

- - ### Method Detail

    - #### 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

Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.