public void check( List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space, Repository repository, IMetaStore metaStore) { boolean res = JobEntryValidatorUtils.andValidator() .validate( this, "arguments", remarks, AndValidator.putValidators(JobEntryValidatorUtils.notNullValidator())); if (res == false) { return; } ValidatorContext ctx = new ValidatorContext(); AbstractFileValidator.putVariableSpace(ctx, getVariables()); AndValidator.putValidators( ctx, JobEntryValidatorUtils.notNullValidator(), JobEntryValidatorUtils.fileExistsValidator()); for (int i = 0; i < arguments.length; i++) { JobEntryValidatorUtils.andValidator().validate(this, "arguments[" + i + "]", remarks, ctx); } }
@Override public void check( List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space, Repository repository, IMetaStore metaStore) { ValidatorContext ctx = new ValidatorContext(); putVariableSpace(ctx, getVariables()); putValidators(ctx, notBlankValidator(), fileExistsValidator()); andValidator().validate(this, "xmlFilename", remarks, ctx); andValidator().validate(this, "xslFilename", remarks, ctx); andValidator().validate(this, "outputFilename", remarks, putValidators(notBlankValidator())); }
public void check( List<CheckResultInterface> remarks, JobMeta jobMeta, VariableSpace space, Repository repository, IMetaStore metaStore) { boolean res = andValidator().validate(this, "variableName", remarks, putValidators(notNullValidator())); if (res == false) { return; } ValidatorContext ctx = new ValidatorContext(); putVariableSpace(ctx, getVariables()); putValidators(ctx, notNullValidator(), fileExistsValidator()); for (int i = 0; i < variableName.length; i++) { andValidator().validate(this, "variableName[" + i + "]", remarks, ctx); } }