org.apache.bval.jsr303
Class AnnotationConstraintBuilder<A extends Annotation>

java.lang.Object
  extended by org.apache.bval.jsr303.AnnotationConstraintBuilder<A>

final class AnnotationConstraintBuilder<A extends Annotation>
extends Object

Description: helper class that builds a ConstraintValidation or its composite constraint validations by parsing the jsr303-annotations and providing information (e.g. for @OverridesAttributes)


Constructor Summary
AnnotationConstraintBuilder(Class<? extends ConstraintValidator<A,?>>[] validatorClasses, ConstraintValidator<A,?> constraintValidator, A annotation, Class<?> owner, AccessStrategy access)
          Create a new AnnotationConstraintBuilder instance.
 
Method Summary
 void addComposed(ConstraintValidation<?> composite)
          initialize a child composite 'validation' with @OverridesAttribute from 'constraintValidation' and add to composites.
 ConstraintValidation<?> getConstraintValidation()
          Get the configured ConstraintValidation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationConstraintBuilder

public AnnotationConstraintBuilder(Class<? extends ConstraintValidator<A,?>>[] validatorClasses,
                                   ConstraintValidator<A,?> constraintValidator,
                                   A annotation,
                                   Class<?> owner,
                                   AccessStrategy access)
Create a new AnnotationConstraintBuilder instance.

Parameters:
validatorClasses -
constraintValidator -
annotation -
owner -
access -
Method Detail

getConstraintValidation

public ConstraintValidation<?> getConstraintValidation()
Get the configured ConstraintValidation.

Returns:
ConstraintValidation

addComposed

public void addComposed(ConstraintValidation<?> composite)
initialize a child composite 'validation' with @OverridesAttribute from 'constraintValidation' and add to composites.



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