org.hibernate.validator.internal.metadata.descriptor
Class MethodDescriptorImpl

java.lang.Object
  extended by org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
      extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
javax.validation.metadata.ElementDescriptor.ConstraintFinder
 
Constructor Summary
MethodDescriptorImpl(Class<?> returnType, String name, Set<ConstraintDescriptorImpl<?>> returnValueConstraints, boolean isCascaded, List<ParameterDescriptor> parameters, boolean defaultGroupSequenceRedefined, List<Class<?>> defaultGroupSequence)
           
 
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.
 
Methods inherited from class org.hibernate.validator.internal.metadata.descriptor.ElementDescriptorImpl
asDescriptors, findConstraints, getConstraintDescriptors, getElementClass, hasConstraints, isCascaded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hibernate.validator.method.metadata.MethodDescriptor
isCascaded
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Constructor Detail

MethodDescriptorImpl

public MethodDescriptorImpl(Class<?> returnType,
                            String name,
                            Set<ConstraintDescriptorImpl<?>> returnValueConstraints,
                            boolean isCascaded,
                            List<ParameterDescriptor> parameters,
                            boolean defaultGroupSequenceRedefined,
                            List<Class<?>> defaultGroupSequence)
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.


Copyright © 2012 Oracle Corporation. All Rights Reserved.