01: package org.jreform;
02:
03: /**
04: * A criterion that can evaluate to <code>true</code> or <code>false</code>.
05: *
06: * @author armandino (at) gmail.com
07: */
08: public interface Criterion<T> extends MessageOnError {
09: /**
10: * Tests whether the specified value satisfies this criterion.
11: * @param value to be tested against this criterion.
12: * @return <code>true</code> if the criterion is satisfied,
13: * <code>false</code> otherwise.
14: */
15: public boolean isSatisfied(T value);
16:
17: }
|