public class FileExistsValidator extends AbstractFileValidator
| Modifier and Type | Field and Description | 
|---|---|
static FileExistsValidator | 
INSTANCE  | 
KEY_LEVEL_ON_FAIL| Constructor and Description | 
|---|
FileExistsValidator()  | 
| Modifier and Type | Method and Description | 
|---|---|
String | 
getName()
Returns the name of this validator, unique among all validators. 
 | 
static ValidatorContext | 
putFailIfDoesNotExist(boolean failIfDoesNotExist)  | 
static void | 
putFailIfDoesNotExist(ValidatorContext context,
                     boolean failIfDoesNotExist)  | 
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. | 
putVariableSpace, putVariableSpacepublic static final FileExistsValidator INSTANCE
public boolean validate(org.pentaho.di.core.CheckResultSourceInterface source,
                        String propertyName,
                        List<org.pentaho.di.core.CheckResultInterface> remarks,
                        ValidatorContext context)
JobEntryValidatorpropertyName from the bean source
 and runs the validation putting any messages into remarks. The return value is true if
 the validation passes.source - bean to validatepropertyName - property to validateremarks - list to which to add messagescontext - any other information needed to perform the validationpublic String getName()
JobEntryValidatorpublic static ValidatorContext putFailIfDoesNotExist(boolean failIfDoesNotExist)
public static void putFailIfDoesNotExist(ValidatorContext context, boolean failIfDoesNotExist)