public final class Validators extends Object
PDFAValidators.| Modifier and Type | Method and Description |
|---|---|
static PDFAValidator |
createValidator(PDFAFlavour flavour,
boolean logPassedChecks)
Creates a new
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource. |
static PDFAValidator |
createValidator(PDFAFlavour flavour,
boolean logPassedChecks,
int maxFailures)
Creates a new
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource, see
createValidator(PDFAFlavour, boolean). |
static PDFAValidator |
createValidator(ValidationProfile profile)
Creates a new
PDFAValidator initialised with the passed profile
and configured NOT to log passed checks. |
static PDFAValidator |
createValidator(ValidationProfile profile,
boolean logPassedChecks)
Creates a new
PDFAValidator initialised with the passed profile
and chosen passed test logging. |
static PDFAValidator |
createValidator(ValidationProfile profile,
boolean logPassedChecks,
int maxFailures)
Creates a new
PDFAValidator initialised with the passed profile,
chosen passed test logging and requested fast failing behaviour. |
static PDFAValidator |
createValidator(ValidationProfile profile,
int maxFailures)
Creates a new
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks. |
public static PDFAValidator createValidator(PDFAFlavour flavour, boolean logPassedChecks)
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource. While
these profiles are not guaranteed to be up to date, they are available
when offline.
A ProfileDirectory populated with the pre-loaded profiles can be
obtained by calling Profiles.getVeraProfileDirectory().flavour - the PDFAFlavour that's associated with the
ValidationProfile to used to initialise the
PDFAValidator.logPassedChecks - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.PDFAValidator instance initialised from the passed
parameterspublic static PDFAValidator createValidator(PDFAFlavour flavour, boolean logPassedChecks, int maxFailures)
PDFAValidator instance that uses one of the
ValidationProfiles packaged as a core library resource, see
createValidator(PDFAFlavour, boolean).flavour - the PDFAFlavour that's associated with the
ValidationProfile to used to initialise the
PDFAValidator.logPassedChecks - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.maxFailures - an int value that configures the PDFAValidator
to abort validation after maxFailures failed tests. If
maxFailures is less than 1 then the
PDFAValidator will complete the full validation
process.PDFAValidator instance initialised from the passed
parameterspublic static PDFAValidator createValidator(ValidationProfile profile)
PDFAValidator initialised with the passed profile
and configured NOT to log passed checks.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.PDFAValidator instance initialised from the passed
parameterspublic static PDFAValidator createValidator(ValidationProfile profile, boolean logPassedChecks)
PDFAValidator initialised with the passed profile
and chosen passed test logging.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.logPassedChecks - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.PDFAValidator instance initialised from the passed
parameterspublic static PDFAValidator createValidator(ValidationProfile profile, int maxFailures)
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.maxFailures - an int value that configures the PDFAValidator
to abort validation after maxFailures failed tests. If
maxFailures is less than 1 then the
PDFAValidator will complete the full validation
process.PDFAValidator instance initialised from the passed
parameterspublic static PDFAValidator createValidator(ValidationProfile profile, boolean logPassedChecks, int maxFailures)
PDFAValidator initialised with the passed profile,
chosen passed test logging and requested fast failing behaviour.profile - the ValidationProfile to be enforced by the returned
PDFAValidator.logPassedChecks - boolean used to configure logging of passed tests by
the PDFAValidator. Pass true to log passed
tests, false to only log tests that don't pass.maxFailures - an int value that configures the PDFAValidator
to abort validation after maxFailures failed tests. If
maxFailures is less than 1 then the
PDFAValidator will complete the full validation
process.PDFAValidator instance initialised from the passed
parametersCopyright © 2015–2016 The veraPDF Consortium. All rights reserved.