Class IntegerValidator
- java.lang.Object
- 
- org.pentaho.di.job.entry.validator.IntegerValidator
 
- 
- All Implemented Interfaces:
- JobEntryValidator
 
 public class IntegerValidator extends Object implements JobEntryValidator Fails if a field's value is not an integer.
- 
- 
Field SummaryFields Modifier and Type Field Description static IntegerValidatorINSTANCE- 
Fields inherited from interface org.pentaho.di.job.entry.validator.JobEntryValidatorKEY_LEVEL_ON_FAIL
 
- 
 - 
Constructor SummaryConstructors Constructor Description IntegerValidator()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetName()Returns the name of this validator, unique among all validators.booleanvalidate(org.pentaho.di.core.CheckResultSourceInterface source, String propertyName, List<org.pentaho.di.core.CheckResultInterface> remarks, ValidatorContext context)Using reflection, the validator fetches the field namedpropertyNamefrom the beansourceand runs the validation putting any messages intoremarks.
 
- 
- 
- 
Field Detail- 
INSTANCEpublic static final IntegerValidator INSTANCE 
 
- 
 - 
Method Detail- 
validatepublic boolean validate(org.pentaho.di.core.CheckResultSourceInterface source, String propertyName, List<org.pentaho.di.core.CheckResultInterface> remarks, ValidatorContext context)Description copied from interface:JobEntryValidatorUsing reflection, the validator fetches the field namedpropertyNamefrom the beansourceand runs the validation putting any messages intoremarks. The return value istrueif the validation passes.- Specified by:
- validatein interface- JobEntryValidator
- Parameters:
- source- bean to validate
- propertyName- property to validate
- remarks- list to which to add messages
- context- any other information needed to perform the validation
- Returns:
- validation result
 
 - 
getNamepublic String getName() Description copied from interface:JobEntryValidatorReturns the name of this validator, unique among all validators.- Specified by:
- getNamein interface- JobEntryValidator
- Returns:
- name
 
 
- 
 
-