|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springmodules.validation.util.condition.AbstractCondition
org.springmodules.validation.util.condition.NonNullAcceptingCondition
org.springmodules.validation.util.condition.range.AbstractRangeCondition
public abstract class AbstractRangeCondition
A base class for all range conditions.
| Constructor Summary | |
|---|---|
AbstractRangeCondition(java.util.Comparator comparator)
Constructs a new AbstractRangeCondition. |
|
| Method Summary | |
|---|---|
protected abstract boolean |
checkRange(java.lang.Object value,
java.util.Comparator comparator)
Checks the condition upon the given range object. |
boolean |
doCheck(java.lang.Object bean)
See AbstractCondition.doCheck(Object). |
| Methods inherited from class org.springmodules.validation.util.condition.NonNullAcceptingCondition |
|---|
beforeObjectChecked |
| Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition |
|---|
afterObjectChecked, and, check, or |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractRangeCondition(java.util.Comparator comparator)
| Method Detail |
|---|
public final boolean doCheck(java.lang.Object bean)
AbstractCondition.doCheck(Object).
Delegates to checkRange(Object, java.util.Comparator)
doCheck in class AbstractConditionbean - The object to be checked.
true if the given object adheres to this condition, false otherwise.
protected abstract boolean checkRange(java.lang.Object value,
java.util.Comparator comparator)
value - The value to be checkedcomparator - The comparator to be used for the checked value.
true if the given range adheres to this condition, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||