Package net.sourceforge.jnlp.util
Enum ShortcutCreationOptions
- java.lang.Object
-
- java.lang.Enum<ShortcutCreationOptions>
-
- net.sourceforge.jnlp.util.ShortcutCreationOptions
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<ShortcutCreationOptions>
public enum ShortcutCreationOptions extends java.lang.Enum<ShortcutCreationOptions>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CREATE_ALWAYSCREATE_ALWAYS_IF_HINTEDCREATE_ASK_USERCREATE_ASK_USER_IF_HINTEDCREATE_NEVER
-
Field Summary
Fields Modifier and Type Field Description private java.lang.StringconfigName
-
Constructor Summary
Constructors Modifier Constructor Description privateShortcutCreationOptions(java.lang.String configName)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.util.Optional<ShortcutCreationOptions>forConfigName(java.lang.String configName)java.lang.StringgetConfigName()static ShortcutCreationOptionsvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static ShortcutCreationOptions[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CREATE_NEVER
public static final ShortcutCreationOptions CREATE_NEVER
-
CREATE_ALWAYS
public static final ShortcutCreationOptions CREATE_ALWAYS
-
CREATE_ASK_USER
public static final ShortcutCreationOptions CREATE_ASK_USER
-
CREATE_ASK_USER_IF_HINTED
public static final ShortcutCreationOptions CREATE_ASK_USER_IF_HINTED
-
CREATE_ALWAYS_IF_HINTED
public static final ShortcutCreationOptions CREATE_ALWAYS_IF_HINTED
-
-
Method Detail
-
values
public static ShortcutCreationOptions[] 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 (ShortcutCreationOptions c : ShortcutCreationOptions.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ShortcutCreationOptions valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getConfigName
public java.lang.String getConfigName()
-
forConfigName
public static java.util.Optional<ShortcutCreationOptions> forConfigName(java.lang.String configName)
-
-