org.apache.bval.jsr303.extensions
Class ConstructorDescriptorImpl

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

public class ConstructorDescriptorImpl
extends ElementDescriptorImpl
implements ConstructorDescriptor, ProcedureDescriptor

Description: ConstructorDescriptor 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 ConstructorDescriptorImpl(Class<?> elementClass, Validation[] validations)
          Create a new ConstructorDescriptorImpl instance.
protected ConstructorDescriptorImpl(MetaBean metaBean, Validation[] validations)
          Create a new ConstructorDescriptorImpl instance.
 
Method Summary
 List<ParameterDescriptor> getParameterDescriptors()
          Get the list of ParameterDescriptors.
 boolean isCascaded()
          Learn whether the referenced constructor 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

ConstructorDescriptorImpl

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

Parameters:
metaBean -
validations -

ConstructorDescriptorImpl

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

Parameters:
elementClass -
validations -
Method Detail

isCascaded

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

Specified by:
isCascaded in interface ConstructorDescriptor
Returns:

setCascaded

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

Specified by:
setCascaded in interface ProcedureDescriptor

getParameterDescriptors

public List<ParameterDescriptor> getParameterDescriptors()
Get the list of ParameterDescriptors.

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


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