Package org.jboss.migration.cli
Enum CommandLineConstants
- java.lang.Object
-
- java.lang.Enum<CommandLineConstants>
-
- org.jboss.migration.cli.CommandLineConstants
-
- All Implemented Interfaces:
Serializable,Comparable<CommandLineConstants>
public enum CommandLineConstants extends Enum<CommandLineConstants>
- Author:
- emmartins
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENVIRONMENTHELPINTERACTIVENON_INTERACTIVESOURCETARGET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArgument()StringgetDescription()static CommandLineConstantsvalueOf(String name)Returns the enum constant of this type with the specified name.static CommandLineConstants[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENVIRONMENT
public static final CommandLineConstants ENVIRONMENT
-
INTERACTIVE
public static final CommandLineConstants INTERACTIVE
-
NON_INTERACTIVE
public static final CommandLineConstants NON_INTERACTIVE
-
SOURCE
public static final CommandLineConstants SOURCE
-
TARGET
public static final CommandLineConstants TARGET
-
HELP
public static final CommandLineConstants HELP
-
-
Method Detail
-
values
public static CommandLineConstants[] 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 (CommandLineConstants c : CommandLineConstants.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommandLineConstants 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
-
getArgument
public String getArgument()
-
getDescription
public String getDescription()
-
-