public class NotNullValidator extends Object implements JobEntryValidator
null.| Modifier and Type | Field and Description |
|---|---|
static NotNullValidator |
INSTANCE |
KEY_LEVEL_ON_FAIL| Constructor and Description |
|---|
NotNullValidator() |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Returns the name of this validator, unique among all validators.
|
boolean |
validate(CheckResultSourceInterface source,
String propertyName,
List<CheckResultInterface> remarks,
ValidatorContext context)
Using reflection, the validator fetches the field named
propertyName from the bean source
and runs the validation putting any messages into remarks. |
public static final NotNullValidator INSTANCE
public boolean validate(CheckResultSourceInterface source, String propertyName, List<CheckResultInterface> remarks, ValidatorContext context)
JobEntryValidatorpropertyName from the bean source
and runs the validation putting any messages into remarks. The return value is true if
the validation passes.validate in interface JobEntryValidatorsource - bean to validatepropertyName - property to validateremarks - list to which to add messagescontext - any other information needed to perform the validationpublic String getName()
JobEntryValidatorgetName in interface JobEntryValidatorCopyright © 2018 Hitachi Vantara. All rights reserved.