public static enum LocatorLauncher.Command extends Enum<LocatorLauncher.Command>
| Enum Constant and Description |
|---|
START |
STATUS |
STOP |
UNSPECIFIED |
VERSION |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of the Locator launcher command.
|
List<String> |
getOptions()
Gets a set of valid options that can be used with the Locator launcher command when used from
the command-line.
|
boolean |
hasOption(String option)
Determines whether this Locator launcher command has the specified command-line option.
|
static boolean |
isCommand(String name)
Determines whether the specified name refers to a valid Locator launcher command, as defined
by this enumerated type.
|
boolean |
isUnspecified()
Convenience method for determining whether this is the UNSPECIFIED Locator launcher command.
|
static boolean |
isUnspecified(LocatorLauncher.Command command)
Determines whether the given Locator launcher command has been properly specified.
|
String |
toString()
Gets the String representation of this Locator launcher command.
|
static LocatorLauncher.Command |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LocatorLauncher.Command |
valueOfName(String name)
Looks up a Locator launcher command by name.
|
static LocatorLauncher.Command[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LocatorLauncher.Command START
public static final LocatorLauncher.Command STATUS
public static final LocatorLauncher.Command STOP
public static final LocatorLauncher.Command VERSION
public static final LocatorLauncher.Command UNSPECIFIED
public static LocatorLauncher.Command[] values()
for (LocatorLauncher.Command c : LocatorLauncher.Command.values()) System.out.println(c);
public static LocatorLauncher.Command 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 nullpublic static boolean isCommand(String name)
name - a String value indicating the potential name of a Locator launcher command.public static boolean isUnspecified(LocatorLauncher.Command command)
command - the Locator launcher command.UNSPECIFIEDpublic static LocatorLauncher.Command valueOfName(String name)
name - a String value indicating the name of the Locator launcher command.public String getName()
public List<String> getOptions()
public boolean hasOption(String option)
option - a String indicating the name of the command-line option to this command.public boolean isUnspecified()
UNSPECIFIEDpublic String toString()
toString in class Enum<LocatorLauncher.Command>