Class NotBlankValidator
java.lang.Object
org.pentaho.di.job.entry.validator.NotBlankValidator
- All Implemented Interfaces:
JobEntryValidator
Fails if the field's value is either
null, an empty string, or a string containing only whitespace.- Author:
- mlowery
-
Field Summary
FieldsFields inherited from interface org.pentaho.di.job.entry.validator.JobEntryValidator
KEY_LEVEL_ON_FAIL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetName()Returns the name of this validator, unique among all validators.booleanvalidate(org.pentaho.di.core.bowl.Bowl bowl, 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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.pentaho.di.job.entry.validator.JobEntryValidator
validate
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
NotBlankValidator
public NotBlankValidator()
-
-
Method Details
-
validate
public boolean validate(org.pentaho.di.core.bowl.Bowl bowl, 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 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
-
getName
Description copied from interface:JobEntryValidatorReturns the name of this validator, unique among all validators.- Specified by:
getNamein interfaceJobEntryValidator- Returns:
- name
-