org.hibernate.validator.metadata
Class ParameterDescriptorImpl

java.lang.Object
  extended by org.hibernate.validator.metadata.ElementDescriptorImpl
      extended by org.hibernate.validator.metadata.ParameterDescriptorImpl
All Implemented Interfaces:
ElementDescriptor, ParameterDescriptor

public class ParameterDescriptorImpl
extends ElementDescriptorImpl
implements ParameterDescriptor

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Constructor Summary
ParameterDescriptorImpl(BeanMetaData<?> metaDataBean, ParameterMetaData parameterMetaData)
           
 
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 class org.hibernate.validator.metadata.ElementDescriptorImpl
addConstraintDescriptor, findConstraints, getConstraintDescriptors, getElementClass, getMetaDataBean, hasConstraints
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Constructor Detail

ParameterDescriptorImpl

public ParameterDescriptorImpl(BeanMetaData<?> metaDataBean,
                               ParameterMetaData parameterMetaData)
Method Detail

isCascaded

public boolean isCascaded()
Description copied from interface: ParameterDescriptor
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.

Specified by:
isCascaded in interface ParameterDescriptor
Returns:
True, if this parameter shall be validated recursively, false otherwise.

getIndex

public int getIndex()
Description copied from interface: ParameterDescriptor
Returns this parameter's index within the parameter array of the method holding it.

Specified by:
getIndex in interface ParameterDescriptor
Returns:
This parameter's index.


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