Class VeraCliArgParser


  • public class VeraCliArgParser
    extends Object
    This class holds all command-line options used by VeraPDF application.
    Author:
    Timur Kamalov
    • Constructor Detail

      • VeraCliArgParser

        public VeraCliArgParser()
    • Method Detail

      • showVersion

        public boolean showVersion()
        Returns:
        true if version information requested
      • listProfiles

        public boolean listProfiles()
        Returns:
        true if list of supported profiles requested
      • isVerbose

        public boolean isVerbose()
        Returns:
        true if to output failed rules to text output
      • isDebug

        public boolean isDebug()
        Returns:
        true if to output file names of all processed files
      • maxFailuresDisplayed

        public int maxFailuresDisplayed()
        Returns:
        maximum amount of failed checks displayed for each rule
      • maxFailures

        public int maxFailures()
        Returns:
        maximum amount of failed checks
      • fixMetadata

        public boolean fixMetadata()
        Returns:
        true if metadata fix is enabled
      • prefix

        public String prefix()
        Returns:
        the prefix of the saved file
      • saveFolder

        public String saveFolder()
        Returns:
        the folder to save the fixed file to
      • nonPdfExt

        public boolean nonPdfExt()
      • isRecurse

        public boolean isRecurse()
        Returns:
        true if to recursively process sub-dirs
      • isServerMode

        public boolean isServerMode()
        Returns:
        true if server mode enabled
      • isHelp

        public boolean isHelp()
        Returns:
        true if help requested
      • getFormat

        public FormatOption getFormat()
        Returns:
        true if verbose output requested
      • logPassed

        public boolean logPassed()
        Returns:
        true if log passed checks requested
      • extractFeatures

        public boolean extractFeatures()
        Returns:
        true if PDF Feature extraction requested
      • getDefaultFlavour

        public PDFAFlavour getDefaultFlavour()
      • getFlavour

        public PDFAFlavour getFlavour()
        Returns:
        the validation flavour string id
      • getProfileFile

        public File getProfileFile()
        Returns:
        the File object for the validation profile
      • getPolicyFile

        public File getPolicyFile()
        Returns:
        the File object for the validation profile
      • isPolicy

        public boolean isPolicy()
      • getVeraCLIPath

        public File getVeraCLIPath()
      • getNumberOfProcesses

        public int getNumberOfProcesses()
      • getPdfPaths

        public List<String> getPdfPaths()
        Returns:
        the list of file paths
      • isValidationOff

        public boolean isValidationOff()