Package org.verapdf.pdfa
Class AbstractFoundry
java.lang.Object
org.verapdf.pdfa.AbstractFoundry
- All Implemented Interfaces:
Closeable,AutoCloseable,Component,VeraPDFFoundry
- Version:
- 0.1 Created 26 Oct 2016:21:25:17
- Author:
- Carl Wilson carlwilson AT github
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()createFailFastValidator(List<PDFAFlavour> flavours, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters, requested fast failing behaviour.createFailFastValidator(PDFAFlavour flavour, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters.createFailFastValidator(ValidationProfile profile, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters, requested fast failing behaviour.createValidator(List<PDFAFlavour> flavours) Creates a newPDFAValidatorinstance that usesValidationProfiles packaged as a core library resource.createValidator(List<PDFAFlavour> flavours, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters.createValidator(PDFAFlavour flavour, boolean logSuccess) Creates a newPDFAValidatorinstance that uses one of theValidationProfiles packaged as a core library resource.createValidator(PDFAFlavour flavour, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters.createValidator(ValidationProfile profile, boolean logSuccess) Creates a newPDFAValidatorinitialised with the passed profile and chosen passed test logging.createValidator(ValidationProfile profile, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Creates a newPDFAValidatorinitialised with the passed profile and parameters.createValidator(ValidatorConfig config) Obtain a newPDFAValidatorinstance.createValidator(ValidatorConfig config, List<PDFAFlavour> flavours) Obtain a newPDFAValidatorinstance that uses the list of a customPDFAFlavours.createValidator(ValidatorConfig config, PDFAFlavour flavour) Obtain a newPDFAValidatorinstance that uses a customPDFAFlavour.createValidator(ValidatorConfig config, ValidationProfile profile) Obtain a newPDFAValidatorinstance that uses a customValidationProfileinstance.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.verapdf.component.Component
getDetailsMethods inherited from interface org.verapdf.pdfa.VeraPDFFoundry
createMetadataFixer, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, createParser, getParserId
-
Constructor Details
-
AbstractFoundry
public AbstractFoundry()
-
-
Method Details
-
createValidator
Description copied from interface:VeraPDFFoundryObtain a newPDFAValidatorinstance.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
config- aValidatorConfiginstance used to configure thePDFAValidator- Returns:
- an appropriately configured
PDFAValidatorinstance.
-
createValidator
Description copied from interface:VeraPDFFoundryObtain a newPDFAValidatorinstance that uses a customPDFAFlavour.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
config- aValidatorConfiginstance used to configure thePDFAValidatorflavour- the particularPDFAFlavourto validated against.- Returns:
- an appropriately configured
PDFAValidatorinstance.
-
createValidator
Description copied from interface:VeraPDFFoundryObtain a newPDFAValidatorinstance that uses the list of a customPDFAFlavours.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
config- aValidatorConfiginstance used to configure thePDFAValidatorflavours- the list of particularPDFAFlavours to validated against.- Returns:
- an appropriately configured
PDFAValidatorinstance.
-
createValidator
Description copied from interface:VeraPDFFoundryObtain a newPDFAValidatorinstance that uses a customValidationProfileinstance.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
config- aValidatorConfiginstance used to configure thePDFAValidatorprofile- a validation profile- Returns:
- an appropriately configured
PDFAValidatorinstance.
-
createValidator
Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinstance that usesValidationProfiles packaged as a core library resource.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
flavours- list of thePDFAFlavourthat are associated with theValidationProfileto used to initialise thePDFAValidator.- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createValidator
Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinstance that uses one of theValidationProfiles packaged as a core library resource.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
flavour- thePDFAFlavourthat's associated with theValidationProfileto used to initialise thePDFAValidator.logSuccess-booleanused to configure logging of passed tests by thePDFAValidator. Passtrueto log passed tests,falseto only log tests that don't pass.- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createValidator
Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and chosen passed test logging.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
profile- theValidationProfileto be enforced by the returnedPDFAValidator.logSuccess-booleanused to configure logging of passed tests by thePDFAValidator. Passtrueto log passed tests,falseto only log tests that don't pass.- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createValidator
public PDFAValidator createValidator(PDFAFlavour flavour, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
flavour- thePDFAFlavourthat's associated with theValidationProfileto used to initialise thePDFAValidator.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess-booleanused to configure logging of passed tests by thePDFAValidator. Passtrueto log passed tests,falseto only log tests that don't pass.showErrorMessages- a flag to show error messagesshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createValidator
public PDFAValidator createValidator(List<PDFAFlavour> flavours, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
flavours- thePDFAFlavourthat's associated with theValidationProfileto used to initialise thePDFAValidator.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess-booleanused to configure logging of passed tests by thePDFAValidator. Passtrueto log passed tests,falseto only log tests that don't pass.showErrorMessages- a flag to show error messagesshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createValidator
public PDFAValidator createValidator(ValidationProfile profile, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters.- Specified by:
createValidatorin interfaceVeraPDFFoundry- Parameters:
profile- theValidationProfileto be enforced by the returnedPDFAValidator.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess-booleanused to configure logging of passed tests by thePDFAValidator. Passtrueto log passed tests,falseto only log tests that don't pass.showErrorMessages- a flag to show error messagesshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createFailFastValidator
public PDFAValidator createFailFastValidator(PDFAFlavour flavour, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters.- Specified by:
createFailFastValidatorin interfaceVeraPDFFoundry- Parameters:
flavour- thePDFAFlavourthat's associated with theValidationProfileto used to initialise thePDFAValidator.maxFailures- anintvalue that configures thePDFAValidatorto abort validation aftermaxFailuresfailed tests. IfmaxFailuresis less than 1 then thePDFAValidatorwill complete the full validation process.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess- a flag to show success logsshowErrorMessages- a flag to show error messageshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createFailFastValidator
public PDFAValidator createFailFastValidator(List<PDFAFlavour> flavours, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters, requested fast failing behaviour.- Specified by:
createFailFastValidatorin interfaceVeraPDFFoundry- Parameters:
flavours- the list ofPDFAFlavourthat's associated with theValidationProfileto used to initialise thPDFAValidator.maxFailures- anintvalue that configures thePDFAValidatorto abort validation aftermaxFailuresfailed tests. IfmaxFailuresis less than 1 then thePDFAValidatorwill complete the full validation process.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess- a flag to show success logsshowErrorMessages- a flag to show error messageshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
createFailFastValidator
public PDFAValidator createFailFastValidator(ValidationProfile profile, int maxFailures, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress) Description copied from interface:VeraPDFFoundryCreates a newPDFAValidatorinitialised with the passed profile and parameters, requested fast failing behaviour.- Specified by:
createFailFastValidatorin interfaceVeraPDFFoundry- Parameters:
profile- theValidationProfileto be enforced by the returnedPDFAValidator.maxFailures- anintvalue that configures thePDFAValidatorto abort validation aftermaxFailuresfailed tests. IfmaxFailuresis less than 1 then thePDFAValidatorwill complete the full validation process.maxNumberOfDisplayedFailedChecks- a max checks number to showlogSuccess- a flag to show success logsshowErrorMessages- a flag to show error messageshowProgress- a flag to show validation progress- Returns:
- a
PDFAValidatorinstance initialised from the passed parameters
-
defaultFlavour
- Specified by:
defaultFlavourin interfaceVeraPDFFoundry- Returns:
- the default
PDFAFlavourset for thisVeraPDFFoundry
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-