Class AbstractFoundry

java.lang.Object
org.verapdf.pdfa.AbstractFoundry
All Implemented Interfaces:
Closeable, AutoCloseable, Component, VeraPDFFoundry

public abstract class AbstractFoundry extends Object implements VeraPDFFoundry
Version:
0.1 Created 26 Oct 2016:21:25:17
Author:
Carl Wilson carlwilson AT github
  • Constructor Details

    • AbstractFoundry

      public AbstractFoundry()
  • Method Details

    • createValidator

      public PDFAValidator createValidator(ValidatorConfig config)
      Description copied from interface: VeraPDFFoundry
      Obtain a new PDFAValidator instance.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      config - a ValidatorConfig instance used to configure the PDFAValidator
      Returns:
      an appropriately configured PDFAValidator instance.
    • createValidator

      public PDFAValidator createValidator(ValidatorConfig config, PDFAFlavour flavour)
      Description copied from interface: VeraPDFFoundry
      Obtain a new PDFAValidator instance that uses a custom PDFAFlavour.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      config - a ValidatorConfig instance used to configure the PDFAValidator
      flavour - the particular PDFAFlavour to validated against.
      Returns:
      an appropriately configured PDFAValidator instance.
    • createValidator

      public PDFAValidator createValidator(ValidatorConfig config, List<PDFAFlavour> flavours)
      Description copied from interface: VeraPDFFoundry
      Obtain a new PDFAValidator instance that uses the list of a custom PDFAFlavours.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      config - a ValidatorConfig instance used to configure the PDFAValidator
      flavours - the list of particular PDFAFlavours to validated against.
      Returns:
      an appropriately configured PDFAValidator instance.
    • createValidator

      public PDFAValidator createValidator(ValidatorConfig config, ValidationProfile profile)
      Description copied from interface: VeraPDFFoundry
      Obtain a new PDFAValidator instance that uses a custom ValidationProfile instance.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      config - a ValidatorConfig instance used to configure the PDFAValidator
      profile - a validation profile
      Returns:
      an appropriately configured PDFAValidator instance.
    • createValidator

      public PDFAValidator createValidator(List<PDFAFlavour> flavours)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator instance that uses ValidationProfiles packaged as a core library resource.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      flavours - list of the PDFAFlavour that are associated with the ValidationProfile to used to initialise the PDFAValidator.
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • createValidator

      public PDFAValidator createValidator(PDFAFlavour flavour, boolean logSuccess)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator instance that uses one of the ValidationProfiles packaged as a core library resource.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      flavour - the PDFAFlavour that's associated with the ValidationProfile to used to initialise the PDFAValidator.
      logSuccess - 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.
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • createValidator

      public PDFAValidator createValidator(ValidationProfile profile, boolean logSuccess)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and chosen passed test logging.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      profile - the ValidationProfile to be enforced by the returned PDFAValidator.
      logSuccess - 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.
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • createValidator

      public PDFAValidator createValidator(PDFAFlavour flavour, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      flavour - the PDFAFlavour that's associated with the ValidationProfile to used to initialise the PDFAValidator.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - 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.
      showErrorMessages - a flag to show error messages
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • createValidator

      public PDFAValidator createValidator(List<PDFAFlavour> flavours, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      flavours - the PDFAFlavour that's associated with the ValidationProfile to used to initialise the PDFAValidator.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - 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.
      showErrorMessages - a flag to show error messages
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • createValidator

      public PDFAValidator createValidator(ValidationProfile profile, int maxNumberOfDisplayedFailedChecks, boolean logSuccess, boolean showErrorMessages, boolean showProgress)
      Description copied from interface: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters.
      Specified by:
      createValidator in interface VeraPDFFoundry
      Parameters:
      profile - the ValidationProfile to be enforced by the returned PDFAValidator.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - 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.
      showErrorMessages - a flag to show error messages
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance 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: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters.
      Specified by:
      createFailFastValidator in interface VeraPDFFoundry
      Parameters:
      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.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - a flag to show success logs
      showErrorMessages - a flag to show error message
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance 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: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters, requested fast failing behaviour.
      Specified by:
      createFailFastValidator in interface VeraPDFFoundry
      Parameters:
      flavours - the list of PDFAFlavour that's associated with the ValidationProfile to used to initialise th 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.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - a flag to show success logs
      showErrorMessages - a flag to show error message
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance 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: VeraPDFFoundry
      Creates a new PDFAValidator initialised with the passed profile and parameters, requested fast failing behaviour.
      Specified by:
      createFailFastValidator in interface VeraPDFFoundry
      Parameters:
      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.
      maxNumberOfDisplayedFailedChecks - a max checks number to show
      logSuccess - a flag to show success logs
      showErrorMessages - a flag to show error message
      showProgress - a flag to show validation progress
      Returns:
      a PDFAValidator instance initialised from the passed parameters
    • defaultFlavour

      public PDFAFlavour defaultFlavour()
      Specified by:
      defaultFlavour in interface VeraPDFFoundry
      Returns:
      the default PDFAFlavour set for this VeraPDFFoundry
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable