org.jreform
Interface Criterion<T>

All Superinterfaces:
MessageOnError
All Known Implementing Classes:
AbstractCriterion, Accept, AcceptString, And, Email, ExactLength, Length, Max, MaxLength, Min, MinLength, Or, PostcodeCA, Range, Regex, StartsWith, ZipCode

public interface Criterion<T>
extends MessageOnError

A criterion that can evaluate to true or false.

Author:
armandino (at) gmail.com

Method Summary
 boolean isSatisfied(T value)
          Tests whether the specified value satisfies this criterion.
 
Methods inherited from interface org.jreform.MessageOnError
getOnError, setOnError
 

Method Detail

isSatisfied

boolean isSatisfied(T value)
Tests whether the specified value satisfies this criterion.

Parameters:
value - to be tested against this criterion.
Returns:
true if the criterion is satisfied, false otherwise.


Copyright © 2007-2008 jReform