org.hibernate.validator.method.metadata
Interface ParameterDescriptor

All Superinterfaces:
ElementDescriptor
All Known Implementing Classes:
ParameterDescriptorImpl

public interface ParameterDescriptor
extends ElementDescriptor

Describes a constrained parameter and the constraints associated with it.

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Method Summary
 int getIndex()
          Returns this parameter's index within the parameter array of the method holding it.
 boolean isCascaded()
          Whether cascaded validation for this parameter shall be performed or not.
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Method Detail

isCascaded

boolean isCascaded()
Whether cascaded validation for this parameter shall be performed or not. This is the case if this parameter is annotated with the Valid annotation either locally or in the inheritance hierarchy.

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

getIndex

int getIndex()
Returns this parameter's index within the parameter array of the method holding it.

Returns:
This parameter's index.


Copyright © 2007-2011 Red Hat Middleware, LLC. All Rights Reserved