Class LongValidator
- java.lang.Object
-
- org.pentaho.di.job.entry.validator.LongValidator
-
- All Implemented Interfaces:
JobEntryValidator
public class LongValidator extends Object implements JobEntryValidator
-
-
Field Summary
Fields Modifier and Type Field Description static LongValidator
INSTANCE
-
Fields inherited from interface org.pentaho.di.job.entry.validator.JobEntryValidator
KEY_LEVEL_ON_FAIL
-
-
Constructor Summary
Constructors Constructor Description LongValidator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of this validator, unique among all validators.boolean
validate(org.pentaho.di.core.CheckResultSourceInterface source, String propertyName, List<org.pentaho.di.core.CheckResultInterface> remarks, ValidatorContext context)
Using reflection, the validator fetches the field namedpropertyName
from the beansource
and runs the validation putting any messages intoremarks
.
-
-
-
Field Detail
-
INSTANCE
public static final LongValidator INSTANCE
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:JobEntryValidator
Returns the name of this validator, unique among all validators.- Specified by:
getName
in interfaceJobEntryValidator
- Returns:
- name
-
validate
public boolean validate(org.pentaho.di.core.CheckResultSourceInterface source, String propertyName, List<org.pentaho.di.core.CheckResultInterface> remarks, ValidatorContext context)
Description copied from interface:JobEntryValidator
Using reflection, the validator fetches the field namedpropertyName
from the beansource
and runs the validation putting any messages intoremarks
. The return value istrue
if the validation passes.- Specified by:
validate
in interfaceJobEntryValidator
- Parameters:
source
- bean to validatepropertyName
- property to validateremarks
- list to which to add messagescontext
- any other information needed to perform the validation- Returns:
- validation result
-
-