org.hibernate.validator.internal.metadata.descriptor
Class MethodDescriptorImpl
java.lang.Object
org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
org.hibernate.validator.internal.metadata.descriptor.MethodDescriptorImpl
- All Implemented Interfaces:
- javax.validation.metadata.ElementDescriptor, MethodDescriptor
public class MethodDescriptorImpl
- extends ElementDescriptorImpl
- implements MethodDescriptor
Describes a validated method.
- Author:
- Gunnar Morling
| Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor |
javax.validation.metadata.ElementDescriptor.ConstraintFinder |
| 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 |
MethodDescriptorImpl
public MethodDescriptorImpl(Class<?> returnType,
String name,
Set<ConstraintDescriptorImpl<?>> returnValueConstraints,
boolean isCascaded,
List<ParameterDescriptor> parameters,
boolean defaultGroupSequenceRedefined,
List<Class<?>> defaultGroupSequence)
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.
Copyright © 2012 Oracle Corporation. All Rights Reserved.