|
|||||||||
| 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.InstanceOfCondition
public class InstanceOfCondition
A condition that checks whether the checked object is of a specific type.
| Constructor Summary | |
|---|---|
InstanceOfCondition(java.lang.Class clazz)
Constructs a new InstanceOfCondition with a given class the checked object will be checked against. |
|
| Method Summary | |
|---|---|
boolean |
doCheck(java.lang.Object object)
Checks whether the given object is an instance of the class associated with this condition. |
java.lang.Class |
getClazz()
Returns the class associated with this condition. |
| 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 InstanceOfCondition(java.lang.Class clazz)
clazz - The class the checked object will be checked against.| Method Detail |
|---|
public boolean doCheck(java.lang.Object object)
doCheck in class AbstractConditionobject - The object to be checked.
true if the given object is an instance of the class associated with this condition,
false otherwise. Note: if the given object is null, false
will be returned.public java.lang.Class getClazz()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||