org.apache.beehive.controls.runtime.generator.apt
Class AnnotationConstraintAptValidator

Object
  extended by AnnotationConstraintValidator
      extended by AnnotationConstraintAptValidator

public class AnnotationConstraintAptValidator
extends AnnotationConstraintValidator

This class is for validating control property values at build time It calls AnnotationConstraintValidator to do the validation.


Constructor Summary
AnnotationConstraintAptValidator()
           
 
Method Summary
static void validate(Declaration d)
          This method ensures that any control property value assignment satisfies all property constraints.
 
Methods inherited from class AnnotationConstraintValidator
parseDate, validate, validate, validateMembership
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationConstraintAptValidator

public AnnotationConstraintAptValidator()
Method Detail

validate

public static void validate(Declaration d)
                     throws IllegalArgumentException
This method ensures that any control property value assignment satisfies all property constraints. This method should be called from an annotation processor to ensure declarative control property assignment using annotations are validated at build time. This method is currently called from ControlAnnotationProcessor and ControlClientAnnotationProcessor.

Parameters:
d - a declaration which may contain a control property value assignment
Throws:
IllegalArgumentException - when the declaration contains a control property value assignment that does not satisfy a property constraint.