javax.validation.metadata
Interface ParameterDescriptor

All Superinterfaces:
ElementDescriptor

public interface ParameterDescriptor
extends ElementDescriptor

Describes a validated method or constructor parameter.

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder, ElementDescriptor.Kind
 
Method Summary
 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.
 boolean isCascaded()
          Whether a cascaded validation of this parameter shall be performed or not.
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
as, findConstraints, getConstraintDescriptors, getElementClass, getKind, hasConstraints
 

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.

isCascaded

boolean isCascaded()
Whether a cascaded validation of this parameter shall be performed or not.

Returns:
true, if this parameter shall be validated recursively, false otherwise.


Copyright © 2007-2012. All Rights Reserved.