Class AndValidator

  • All Implemented Interfaces:
    JobEntryValidator

    public class AndValidator
    extends Object
    implements JobEntryValidator
    Boolean ANDs the results of all validators. If one validator fails, false is immediately returned. The validators list (a List<JobEntryValidator>) should be stored under the KEY_VALIDATORS key.
    Author:
    mlowery
    • Constructor Detail

      • AndValidator

        public AndValidator()
    • Method Detail

      • 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 named propertyName from the bean source and runs the validation putting any messages into remarks. The return value is true if the validation passes.
        Specified by:
        validate in 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
      • getKeyValidators

        public String getKeyValidators()