public interface JobEntryValidator
Job entry validators can provide convenience methods for adding information to the validator context. Those methods should following a naming convention: putX where X is the name of the object being adding to the context. An example:
Modifier and Type | Field and Description |
---|---|
static String |
KEY_LEVEL_ON_FAIL |
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 . |
static final String KEY_LEVEL_ON_FAIL
boolean validate(CheckResultSourceInterface source, String propertyName, List<CheckResultInterface> remarks, ValidatorContext context)
propertyName
from the bean source
and runs the validation putting any messages into remarks
. The return value is true
if
the validation passes.source
- bean to validatepropertyName
- property to validateremarks
- list to which to add messagescontext
- any other information needed to perform the validationString getName()
Copyright © 2018 Hitachi Vantara. All rights reserved.