public class FileDoesNotExistValidator extends AbstractFileValidator
| Modifier and Type | Field and Description | 
|---|---|
static FileDoesNotExistValidator | 
INSTANCE  | 
KEY_LEVEL_ON_FAIL| Constructor and Description | 
|---|
FileDoesNotExistValidator()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected boolean | 
getFailIfExists(CheckResultSourceInterface source,
               String propertyName,
               List<CheckResultInterface> remarks,
               ValidatorContext context)  | 
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(CheckResultSourceInterface source,
        String propertyName,
        List<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. | 
getVariableSpace, putVariableSpace, putVariableSpacepublic static final FileDoesNotExistValidator INSTANCE
public boolean validate(CheckResultSourceInterface source, String propertyName, List<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 putFailIfExists(boolean failIfExists)
protected boolean getFailIfExists(CheckResultSourceInterface source, String propertyName, List<CheckResultInterface> remarks, ValidatorContext context)
public static void putFailIfExists(ValidatorContext context, boolean failIfExists)
Copyright © 2020 Hitachi Vantara. All rights reserved.