public final class ValidatorFactory extends Object
PDFAValidators.| Modifier and Type | Method and Description |
|---|---|
static String |
configToXml(ValidatorConfig source) |
static void |
configToXml(ValidatorConfig source,
OutputStream dest) |
static ValidatorConfig |
createConfig(InputStream source) |
static ValidatorConfig |
createConfig(PDFAFlavour flavour,
boolean recordPasses,
int maxFails) |
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
Validators#createValidator(PDFAFlavour, boolean). |
static PDFAValidator |
createValidator(PDFAFlavour flavour,
int maxFailures)
Creates a new
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks. |
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. |
static ValidatorConfig |
defaultConfig() |
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
Validators#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(PDFAFlavour flavour, int maxFailures)
PDFAValidator initialised with the passed profile,
requested fast failing behaviour and configured NOT to log passed checks.flavour - the PDFAFlavour that's associated with the
ValidationProfile to used to initialise the
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
parameterspublic static ValidatorConfig defaultConfig()
public static ValidatorConfig createConfig(PDFAFlavour flavour, boolean recordPasses, int maxFails)
public static ValidatorConfig createConfig(InputStream source) throws JAXBException
JAXBExceptionpublic static String configToXml(ValidatorConfig source) throws JAXBException
JAXBExceptionpublic static void configToXml(ValidatorConfig source, OutputStream dest) throws JAXBException
JAXBExceptionCopyright © 2015–2017 The veraPDF Consortium. All rights reserved.