org.apache.bval.jsr303.extensions
Interface MethodBeanDescriptor

All Superinterfaces:
BeanDescriptor, ElementDescriptor
All Known Implementing Classes:
MethodBeanDescriptorImpl

public interface MethodBeanDescriptor
extends BeanDescriptor

Description: Provides method/constructor-related constraint information for a type. This class will disappear when such functionality is part of the JSR303 specification.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Method Summary
 Set<ConstructorDescriptor> getConstrainedConstructors()
          Get the set of constrained constructors.
 Set<MethodDescriptor> getConstrainedMethods()
          Get the set of constrained methods.
 ConstructorDescriptor getConstraintsForConstructor(Constructor<?> constructor)
          Get the constraints that apply to a particular constructor.
 MethodDescriptor getConstraintsForMethod(Method method)
          Get the constraints that apply to a particular method.
 
Methods inherited from interface javax.validation.metadata.BeanDescriptor
getConstrainedProperties, getConstraintsForProperty, isBeanConstrained
 
Methods inherited from interface javax.validation.metadata.ElementDescriptor
findConstraints, getConstraintDescriptors, getElementClass, hasConstraints
 

Method Detail

getConstraintsForMethod

MethodDescriptor getConstraintsForMethod(Method method)
Get the constraints that apply to a particular method.

Parameters:
method -
Returns:
MethodDescriptor

getConstraintsForConstructor

ConstructorDescriptor getConstraintsForConstructor(Constructor<?> constructor)
Get the constraints that apply to a particular constructor.

Parameters:
constructor -
Returns:
ConstructorDescriptor

getConstrainedMethods

Set<MethodDescriptor> getConstrainedMethods()
Get the set of constrained methods.

Returns:
Set of MethodDescriptor

getConstrainedConstructors

Set<ConstructorDescriptor> getConstrainedConstructors()
Get the set of constrained constructors.

Returns:
Set of ConstructorDescriptor


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.