org.hibernate.validator.method.metadata
Interface MethodDescriptor

All Superinterfaces:
javax.validation.metadata.ElementDescriptor
All Known Implementing Classes:
MethodDescriptorImpl

public interface MethodDescriptor
extends javax.validation.metadata.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
javax.validation.metadata.ElementDescriptor.ConstraintFinder
 
Method Summary
 java.lang.String getMethodName()
          Returns the name of the method represented by this descriptor.
 java.util.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

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

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

getParameterDescriptors

java.util.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 © 2011 Oracle Corporation. All Rights Reserved.