|
|||||||||
| 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.common.AbstractCompoundCondition
org.springmodules.validation.util.condition.common.OrCondition
public class OrCondition
A compound condition that represent a logical OR of all its associated conditions.
| Constructor Summary | |
|---|---|
OrCondition(java.util.Collection conditions)
Constructs a new OrCondition with the given condition collection. |
|
OrCondition(Condition[] conditions)
Constructs a new OrCondition with the given condition array. |
|
| Method Summary | |
|---|---|
boolean |
doCheck(java.lang.Object object)
Checks whether at least one of the associated conditions of this condition returns true. |
| Methods inherited from class org.springmodules.validation.util.condition.common.AbstractCompoundCondition |
|---|
getConditions |
| Methods inherited from class org.springmodules.validation.util.condition.AbstractCondition |
|---|
afterObjectChecked, and, beforeObjectChecked, check, or |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OrCondition(Condition[] conditions)
conditions - The conditions this condition is compound from.public OrCondition(java.util.Collection conditions)
conditions - The conditions this condition is compound from.| Method Detail |
|---|
public boolean doCheck(java.lang.Object object)
true.
doCheck in class AbstractConditionobject - The object to be checked.
true if at least one of the associated conditions returns true,
false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||