Enum UseCases

    • Enum Constant Detail

      • DOWNLOAD

        public static final UseCases DOWNLOAD
        The use case for downloading articles.
      • EXTRACT

        public static final UseCases EXTRACT
        The use case for extracting terms.
      • DOWNLOAD_AND_EXTRACT

        public static final UseCases DOWNLOAD_AND_EXTRACT
        The use case for both downloading and extracting articles.
    • Constructor Detail

      • UseCases

        private UseCases()
    • Method Detail

      • values

        public static UseCases[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (UseCases c : UseCases.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static UseCases valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromCommandLine

        public static UseCases fromCommandLine​(org.apache.commons.cli.CommandLine commandLine)
        Returns the use case from the command line.
        Parameters:
        commandLine - the command line
        Returns:
        the use case