jodd.vtor
Interface ValidationConstraint<A extends Annotation>

All Known Implementing Classes:
AssertFalseConstraint, AssertTrueConstraint, AssertValidConstraint, EqualToDeclaredFieldConstraint, EqualToFieldConstraint, HasSubstringConstraint, LengthConstraint, MaxConstraint, MaxLengthConstraint, MinConstraint, MinLengthConstraint, NotBlankConstraint, NotNullConstraint, RangeConstraint, SizeConstraint, TimeAfterConstraint, TimeBeforeConstraint, WildcardMatchConstraint, WildcardPathMatchConstraint

public interface ValidationConstraint<A extends Annotation>

Definition of validation constraint.


Method Summary
 void configure(A annotation)
          Configures constraint from associated annotation.
 boolean isValid(ValidationConstraintContext vcc, Object value)
          Performs validation in context of target object on provided value.
 

Method Detail

configure

void configure(A annotation)
Configures constraint from associated annotation.


isValid

boolean isValid(ValidationConstraintContext vcc,
                Object value)
Performs validation in context of target object on provided value.

Returns:
true if validation passes, otherwise false.