org.apache.bval.jsr303.extensions
Class MethodDescriptorImpl

java.lang.Object
  extended by org.apache.bval.jsr303.ElementDescriptorImpl
      extended by org.apache.bval.jsr303.extensions.MethodDescriptorImpl
All Implemented Interfaces:
ElementDescriptor, MethodDescriptor, ProcedureDescriptor

public class MethodDescriptorImpl
extends ElementDescriptorImpl
implements MethodDescriptor, ProcedureDescriptor

Description: MethodDescriptor implementation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.validation.metadata.ElementDescriptor
ElementDescriptor.ConstraintFinder
 
Field Summary
 
Fields inherited from class org.apache.bval.jsr303.ElementDescriptorImpl
elementClass, metaBean
 
Constructor Summary
protected MethodDescriptorImpl(Class<?> elementClass, Validation[] validations)
          Create a new MethodDescriptorImpl instance.
protected MethodDescriptorImpl(MetaBean metaBean, Validation[] validations)
          Create a new MethodDescriptorImpl instance.
 
Method Summary
(package private)  void addValidations(Collection<ConstraintValidation<?>> validations)
          Add the specified validations to this MethodDescriptorImpl.
 List<ParameterDescriptor> getParameterDescriptors()
          Get the ParameterDescriptors for this MethodDescriptor.
 boolean isCascaded()
          Learn whether the referenced method should be validated.
 void setCascaded(boolean cascaded)
          Set whether this procedure should be validated.
 
Methods inherited from class org.apache.bval.jsr303.ElementDescriptorImpl
findConstraints, getConstraintDescriptors, getConstraintDescriptors, getElementClass, getMetaBean, getMutableConstraintDescriptors, hasConstraints, setConstraintDescriptors
 
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
 
Methods inherited from interface org.apache.bval.jsr303.extensions.ProcedureDescriptor
getMetaBean
 

Constructor Detail

MethodDescriptorImpl

protected MethodDescriptorImpl(MetaBean metaBean,
                               Validation[] validations)
Create a new MethodDescriptorImpl instance.

Parameters:
metaBean -
validations -

MethodDescriptorImpl

protected MethodDescriptorImpl(Class<?> elementClass,
                               Validation[] validations)
Create a new MethodDescriptorImpl instance.

Parameters:
elementClass -
validations -
Method Detail

getParameterDescriptors

public List<ParameterDescriptor> getParameterDescriptors()
Get the ParameterDescriptors for this MethodDescriptor.

Specified by:
getParameterDescriptors in interface MethodDescriptor
Specified by:
getParameterDescriptors in interface ProcedureDescriptor
Returns:
List of ParameterDescriptor

isCascaded

public boolean isCascaded()
Learn whether the referenced method should be validated.

Specified by:
isCascaded in interface MethodDescriptor
Returns:
boolean

setCascaded

public void setCascaded(boolean cascaded)
Set whether this procedure should be validated.

Specified by:
setCascaded in interface ProcedureDescriptor

addValidations

void addValidations(Collection<ConstraintValidation<?>> validations)
Add the specified validations to this MethodDescriptorImpl.

Parameters:
validations -


Copyright © 2010-2012 Apache Software Foundation. All Rights Reserved.