javax.validation.metadata
Interface ConstructorDescriptor

All Superinterfaces:
ElementDescriptor

public interface ConstructorDescriptor
extends ElementDescriptor

Describes a validated constructor.

Author:
Gunnar Morling

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

Method Detail

getParameterDescriptors

List<ParameterDescriptor> getParameterDescriptors()

Returns a list with descriptors for this constructor parameters. The size of this list corresponds to the number of this constructor parameters.

Returns:
A list with descriptors for this constructor's parameters. An empty list will be returned if this constructor has no parameters, but never null.

getReturnValueDescriptor

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

Returns:
A descriptor for this constructor's return value.


Copyright © 2007-2012. All Rights Reserved.