org.pentaho.di.job.entry.validator
Class FileDoesNotExistValidator
java.lang.Object
  
org.pentaho.di.job.entry.validator.AbstractFileValidator
      
org.pentaho.di.job.entry.validator.FileDoesNotExistValidator
- All Implemented Interfaces: 
 - JobEntryValidator
 
public class FileDoesNotExistValidator
- extends AbstractFileValidator
 
Fails if a field's value is a filename and the file does not exist.
- Author:
 
  - mlowery
 
 
 
 
| 
Method Summary | 
 String | 
getName()
 
          Returns the name of this validator, unique among all validators. | 
static ValidatorContext | 
putFailIfExists(boolean failIfExists)
 
            | 
static void | 
putFailIfExists(ValidatorContext context,
                boolean failIfExists)
 
            | 
 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 named propertyName from the bean
 source and runs the validation putting any messages into remarks. | 
 
 
 
INSTANCE
public static final FileDoesNotExistValidator INSTANCE
FileDoesNotExistValidator
public FileDoesNotExistValidator()
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.
- 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
public String getName()
- Description copied from interface: 
JobEntryValidator 
- Returns the name of this validator, unique among all validators.
- Returns:
 - name
 
 
 
putFailIfExists
public static ValidatorContext putFailIfExists(boolean failIfExists)
 
putFailIfExists
public static void putFailIfExists(ValidatorContext context,
                                   boolean failIfExists)