org.hibernate.validator.method.metadata
Interface MethodDescriptor

All Superinterfaces:
ElementDescriptor
All Known Implementing Classes:
MethodDescriptorImpl

public interface MethodDescriptor
extends ElementDescriptor

Describes a method and the constraints associated with it.

Author:
Gunnar Morling, Kevin Pollet - SERLI - (kevin.pollet@serli.com)

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
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 interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Method Detail

getMethodName

String getMethodName()
Returns the name of the method represented by this descriptor.

Returns:
The name of the method represented by this descriptor.

getParameterDescriptors

List<ParameterDescriptor> getParameterDescriptors()

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

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

Returns:
A list with descriptors for this method's parameters. An empty list will be returned if this method has no parameters.

isCascaded

boolean isCascaded()
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.

Returns:
True, if this method's return value shall be validated recursively, false otherwise.


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