Enum Constant and Description |
---|
APPLET |
CUSTOM |
STANDALONE |
WEBSTART |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
KEY
Constant used to resolve the runMode via System.getProperty(RunMode.KEY)
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
static boolean |
isSystemSet() |
static RunMode |
resolveRunMode(java.lang.String shortName)
Returns the running mode for the given short name
|
void |
setName(java.lang.String name) |
static RunMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RunMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RunMode STANDALONE
public static final RunMode WEBSTART
public static final RunMode APPLET
public static final RunMode CUSTOM
public static final java.lang.String KEY
public static RunMode[] values()
for (RunMode c : RunMode.values()) System.out.println(c);
public static RunMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static boolean isSystemSet()
@Nullable public static RunMode resolveRunMode(@Nullable java.lang.String shortName)
shortName
- The short name@Nonnull public java.lang.String getName()
public void setName(@Nullable java.lang.String name)