org.hibernate.validator.metadata
Class MethodDescriptorImpl

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

public class MethodDescriptorImpl
extends ElementDescriptorImpl
implements MethodDescriptor

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Constructor Summary
MethodDescriptorImpl(BeanMetaData<?> metaDataBean, AggregatedMethodMetaData methodMetaData)
           
 
Method Summary
 String getMethodName()
          Returns the name of the method represented by this descriptor.
 List<ParameterDescriptor> getParameterDescriptors()
           Returns a list with descriptors for this method's parameters.
 boolean isCascaded()
          Whether a cascaded validation for this method's return value 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

MethodDescriptorImpl

public MethodDescriptorImpl(BeanMetaData<?> metaDataBean,
                            AggregatedMethodMetaData methodMetaData)
Method Detail

getMethodName

public String getMethodName()
Description copied from interface: MethodDescriptor
Returns the name of the method represented by this descriptor.

Specified by:
getMethodName in interface MethodDescriptor
Returns:
The name of the method represented by this descriptor.

getParameterDescriptors

public List<ParameterDescriptor> getParameterDescriptors()
Description copied from interface: MethodDescriptor

Returns a list with descriptors for this method's parameters.

The size of this list corresponds with the number of this method's parameters.

Specified by:
getParameterDescriptors in interface MethodDescriptor
Returns:
A list with descriptors for this method's parameters. An empty list will be returned if this method has no parameters.

isCascaded

public boolean isCascaded()
Description copied from interface: MethodDescriptor
Whether a cascaded validation for this method's return value shall be performed or not. This is the case if this method is marked for a cascaded validation (e.g. by annotating it with the Valid annotation) either locally or in the inheritance hierarchy.

Specified by:
isCascaded in interface MethodDescriptor
Returns:
True, if this method's return value shall be validated recursively, false otherwise.


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