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