javax.validation.metadata
Interface MethodDescriptor

All Superinterfaces:
ElementDescriptor

public interface MethodDescriptor
extends ElementDescriptor

Describes a validated method.

Author:
Gunnar Morling

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder, ElementDescriptor.Kind
 
Method Summary
 String getName()
          Returns the name of the method represented by this descriptor.
 List<ParameterDescriptor> getParameterDescriptors()
           Returns a list with descriptors for this method's parameters.
 ReturnValueDescriptor getReturnValueDescriptor()
          Returns a descriptor for this method's return value.
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
as, findConstraints, getConstraintDescriptors, getElementClass, getKind, hasConstraints
 

Method Detail

getName

String getName()
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 to 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, but never null.

getReturnValueDescriptor

ReturnValueDescriptor getReturnValueDescriptor()
Returns a descriptor for this method's return value.

Returns:
A descriptor for this method's return value or null if this method has no return value.


Copyright © 2007-2012. All Rights Reserved.