| java.lang.Object org.iscreen.BaseValidator org.iscreen.validators.NullValidator
NullValidator | public class NullValidator extends BaseValidator (Code) | | The NullValidator checks a single value and ensures that it's not null.
author: Shellman, Dan |
NullValidator | public NullValidator()(Code) | | Default constructor.
|
getDefaultFailure | public FailureMessage getDefaultFailure()(Code) | | Retrieves the default failure message. If only one failure
is used by the sub-class, then this property can be used to
get the failure message for reporting a failure.
Returns the default failure message. |
setDefaultFailure | public void setDefaultFailure(FailureMessage failure)(Code) | | Sets the failure message. This is called based upon what's
configured for this validator. Ensure that this is properly
configured: otherwise, the call to getDefaultFailure() will
return null.
Parameters: failure - The default failure message to use. |
|
|