@Override public PDFAValidator createValidator(ValidationProfile profile, boolean logSuccess) { return ValidatorFactory.createValidator(profile, logSuccess); }
/** * @see org.verapdf.apps.ConfigManager#getValidatorConfig() */ @Override public ValidatorConfig getValidatorConfig() { try (InputStream fis = new FileInputStream(this.validatorFile)) { return ValidatorFactory.createConfig(fis); } catch (IOException | JAXBException excep) { excep.printStackTrace(); return ValidatorFactory.defaultConfig(); } }
/** * @see org.verapdf.apps.ConfigManager#updateValidatorConfig(org.verapdf.pdfa.validation.validators.ValidatorConfig) */ @Override public void updateValidatorConfig(ValidatorConfig config) throws JAXBException, IOException { try (FileOutputStream fos = new FileOutputStream(this.validatorFile, false)) { ValidatorFactory.configToXml(config, fos); } }
|| this.validatorFile.length() == 0) { try (OutputStream fos = new FileOutputStream(this.validatorFile, false)) { ValidatorFactory.configToXml(ValidatorFactory.defaultConfig(), fos);
private ProcessorConfigImpl() { this(ValidatorFactory.defaultConfig(), FeatureFactory.defaultConfig(), PluginsCollectionConfig.defaultConfig(), FixerFactory.defaultConfig(), EnumSet.noneOf(TaskType.class)); }
public ValidatorConfig validatorConfig() { return ValidatorFactory.createConfig(this.flavour, this.logPassed(), this.maxFailures); }
private ProcessorConfigImpl() { this(ValidatorFactory.defaultConfig(), FeatureFactory.defaultConfig(), PluginsCollectionConfig.defaultConfig(), FixerFactory.defaultConfig(), EnumSet.noneOf(TaskType.class)); }
private void changeConfig() throws JAXBException, IOException { if (!this.chooseFlavour.getSelectedItem().equals(GUIConstants.CUSTOM_PROFILE_COMBOBOX_TEXT)) { this.profilePath = FileSystems.getDefault().getPath(emptyString); } PDFAFlavour flavour = getCurrentFlavour(); ValidatorConfig validatorConfig = config.getValidatorConfig(); ValidatorConfig currentConfig = ValidatorFactory.createConfig(flavour, validatorConfig.isRecordPasses(), validatorConfig.getMaxFails()); config.updateValidatorConfig(currentConfig); config.updateAppConfig(appConfigFromState()); }
@Override public PDFAValidator createFailFastValidator(ValidationProfile profile, int maxFailures) { return ValidatorFactory.createValidator(profile, maxFailures); }
ValidatorConfig validConf = ValidatorFactory.createConfig( configManager.getValidatorConfig().getFlavour(), PDFValidationApplication.this.settingsPanel.isDispPassedRules(),
@Override public PDFAValidator createValidator(PDFAFlavour flavour, boolean logSuccess) { return ValidatorFactory.createValidator(flavour, logSuccess); }
/** * Creates a new {@link PDFAValidator} initialised with the passed profile * and configured NOT to log passed checks. * * @param profile * the {@link ValidationProfile} to be enforced by the returned * {@code PDFAValidator}. * @return a {@link PDFAValidator} instance initialised from the passed * parameters */ public static PDFAValidator createValidator(final ValidationProfile profile) { return createValidator(profile, false); }
@Override public PDFAValidator createValidator(ValidationProfile profile, boolean logSuccess) { return ValidatorFactory.createValidator(profile, logSuccess); }
@Override public PDFAValidator createValidator(PDFAFlavour flavour, boolean logSuccess) { return ValidatorFactory.createValidator(flavour, logSuccess); }
/** * Creates a new {@link PDFAValidator} initialised with the passed profile * and configured NOT to log passed checks. * * @param profile * the {@link ValidationProfile} to be enforced by the returned * {@code PDFAValidator}. * @return a {@link PDFAValidator} instance initialised from the passed * parameters */ public static PDFAValidator createValidator(final ValidationProfile profile) { return createValidator(profile, false); }
@Override public PDFAValidator createFailFastValidator(PDFAFlavour flavour, int maxFailures) { return ValidatorFactory.createValidator(flavour, maxFailures); }
@Override public PDFAValidator createFailFastValidator(PDFAFlavour flavour, int maxFailures) { return ValidatorFactory.createValidator(flavour, maxFailures); }
@Override public PDFAValidator createFailFastValidator(ValidationProfile profile, int maxFailures) { return ValidatorFactory.createValidator(profile, maxFailures); }
/** * Creates a new {@link PDFAValidator} initialised with the passed profile, * requested fast failing behaviour and configured NOT to log passed checks. * * @param profile * the {@link ValidationProfile} to be enforced by the returned * {@code PDFAValidator}. * @param maxFailures * an {@code int} value that configures the {@code PDFAValidator} * to abort validation after {@code maxFailures} failed tests. If * {@code maxFailures} is less than 1 then the * {@code PDFAValidator} will complete the full validation * process. * @return a {@link PDFAValidator} instance initialised from the passed * parameters */ public static PDFAValidator createValidator(final ValidationProfile profile, final int maxFailures) { return createValidator(profile, false, maxFailures); }
/** * Creates a new {@link PDFAValidator} initialised with the passed profile, * requested fast failing behaviour and configured NOT to log passed checks. * * @param profile * the {@link ValidationProfile} to be enforced by the returned * {@code PDFAValidator}. * @param maxFailures * an {@code int} value that configures the {@code PDFAValidator} * to abort validation after {@code maxFailures} failed tests. If * {@code maxFailures} is less than 1 then the * {@code PDFAValidator} will complete the full validation * process. * @return a {@link PDFAValidator} instance initialised from the passed * parameters */ public static PDFAValidator createValidator(final ValidationProfile profile, final int maxFailures) { return createValidator(profile, false, maxFailures); }