jodd.vtor
Interface ValidationConstraint<A extends java.lang.annotation.Annotation>

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

public interface ValidationConstraint<A extends java.lang.annotation.Annotation>

Definition of validation constraint.


Method Summary
 void configure(A annotation)
          Configures constraint from associated annotation.
 boolean isValid(ValidationConstraintContext vcc, java.lang.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,
                java.lang.Object value)
Performs validation in context of target object on provided value.

Returns:
true if validation passes, otherwise false.


Copyright © 2003-2011 Jodd Team