org.apache.bval.jsr303.util
Class ConstraintDefinitionValidator

java.lang.Object
  extended by org.apache.bval.jsr303.util.ConstraintDefinitionValidator

public class ConstraintDefinitionValidator
extends Object

Internal validator that ensures the correct definition of constraint annotations.

Author:
Carlos Vara

Constructor Summary
ConstraintDefinitionValidator()
           
 
Method Summary
static void validateConstraintDefinition(Annotation annotation)
          Ensures that the constraint definition is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConstraintDefinitionValidator

public ConstraintDefinitionValidator()
Method Detail

validateConstraintDefinition

public static void validateConstraintDefinition(Annotation annotation)
Ensures that the constraint definition is valid.

Parameters:
annotation - An annotation which is annotated with Constraint.
Throws:
ConstraintDefinitionException - In case the constraint is invalid.


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