Package it.unipd.dei.eis.core.enums
Enum UseCases
- java.lang.Object
-
- java.lang.Enum<UseCases>
-
- it.unipd.dei.eis.core.enums.UseCases
-
- All Implemented Interfaces:
Serializable,Comparable<UseCases>
public enum UseCases extends Enum<UseCases>
Enumeration of the use cases.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DOWNLOADThe use case for downloading articles.DOWNLOAD_AND_EXTRACTThe use case for both downloading and extracting articles.EXTRACTThe use case for extracting terms.
-
Constructor Summary
Constructors Modifier Constructor Description privateUseCases()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UseCasesfromCommandLine(org.apache.commons.cli.CommandLine commandLine)Returns the use case from the command line.static UseCasesvalueOf(String name)Returns the enum constant of this type with the specified name.static UseCases[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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.
-
-
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 nameNullPointerException- 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
-
-