net.sf.oval.configuration.annotation
Interface AnnotationCheck<ConstraintAnnotation extends Annotation>

All Superinterfaces:
Check, Serializable
All Known Implementing Classes:
AbstractAnnotationCheck, AssertCheck, AssertConstraintSetCheck, AssertFalseCheck, AssertFieldConstraintsCheck, AssertNullCheck, AssertTrueCheck, AssertURLCheck, AssertValidCheck, CheckWithCheck, ConstraintsCheck, DateRangeCheck, DigitsCheck, EmailCheck, EqualToFieldCheck, FutureCheck, HasSubstringCheck, InstanceOfAnyCheck, InstanceOfCheck, LengthCheck, MatchPatternCheck, MaxCheck, MaxLengthCheck, MaxSizeCheck, MemberOfCheck, MinCheck, MinLengthCheck, MinSizeCheck, NoSelfReferenceCheck, NotBlankCheck, NotEmptyCheck, NotEqualCheck, NotEqualToFieldCheck, NotMatchPatternCheck, NotMemberOfCheck, NotNegativeCheck, NotNullCheck, PastCheck, RangeCheck, SizeCheck, ValidateWithMethodCheck

public interface AnnotationCheck<ConstraintAnnotation extends Annotation>
extends Check

Interface for constraint checks that are configurable via annotations.

Author:
Sebastian Thomschke

Method Summary
 void configure(ConstraintAnnotation constraintAnnotation)
          Configures the check based on the given constraint annotation.
 
Methods inherited from interface net.sf.oval.Check
getAppliesTo, getContext, getErrorCode, getMessage, getMessageVariables, getProfiles, getSeverity, getTarget, getWhen, isActive, isSatisfied, setAppliesTo, setContext, setErrorCode, setMessage, setProfiles, setSeverity, setTarget, setWhen
 

Method Detail

configure

void configure(ConstraintAnnotation constraintAnnotation)
               throws InvalidConfigurationException
Configures the check based on the given constraint annotation.

Parameters:
constraintAnnotation - the constraint annotation to use for configuration
Throws:
InvalidConfigurationException - in case of an illegal configuration setting


Copyright © 2005–2015 The OVal Development Team. All rights reserved.