org.hibernate.validator.metadata
Class MethodDescriptorImpl
java.lang.Object
org.hibernate.validator.metadata.ElementDescriptorImpl
org.hibernate.validator.metadata.MethodDescriptorImpl
- All Implemented Interfaces:
- ElementDescriptor, MethodDescriptor
public class MethodDescriptorImpl
- extends ElementDescriptorImpl
- implements MethodDescriptor
- Author:
- Gunnar Morling
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodDescriptorImpl
public MethodDescriptorImpl(BeanMetaData<?> metaDataBean,
AggregatedMethodMetaData methodMetaData)
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