|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iscreen.BaseValidator
org.iscreen.validators.NullValidator
public class NullValidator
The NullValidator checks a single value and ensures that it's not null.
| Field Summary |
|---|
| Fields inherited from class org.iscreen.BaseValidator |
|---|
defaultFailure |
| Constructor Summary | |
|---|---|
NullValidator()
Default constructor. |
|
| Method Summary | |
|---|---|
FailureMessage |
getDefaultFailure()
Retrieves the default failure message. |
void |
setDefaultFailure(FailureMessage failure)
Sets the failure message. |
void |
validate(ValidatorContext context,
java.lang.Object beanToValidate)
This is the method that's called to validate the "bean-to-validate." Use the passed in ValidatorContext to report validation failures, etc. |
| Methods inherited from class org.iscreen.BaseValidator |
|---|
constructBeanToValidate, getStringValue, getValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NullValidator()
| Method Detail |
|---|
public void validate(ValidatorContext context,
java.lang.Object beanToValidate)
Validator
context - The ValidatorContext, which is used to report failures.beanToValidate - The JavaBean to validate.public FailureMessage getDefaultFailure()
getDefaultFailure in class BaseValidatorpublic void setDefaultFailure(FailureMessage failure)
setDefaultFailure in class BaseValidatorfailure - The default failure message to use.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||