public static enum CommandLine.ScopeType extends Enum<CommandLine.ScopeType>
Enum Constant and Description |
---|
INHERIT
The element exists in the command where the element is defined and all descendants (subcommands, sub-subcommands, etc.).
|
LOCAL
The element only exists in the current command.
|
Modifier and Type | Method and Description |
---|---|
static CommandLine.ScopeType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CommandLine.ScopeType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommandLine.ScopeType LOCAL
public static final CommandLine.ScopeType INHERIT
public static CommandLine.ScopeType[] values()
for (CommandLine.ScopeType c : CommandLine.ScopeType.values()) System.out.println(c);
public static CommandLine.ScopeType valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null