Enum DescriptionKind
java.lang.Object
java.lang.Enum<DescriptionKind>
net.adoptopenjdk.icedteaweb.jnlp.element.information.DescriptionKind
- All Implemented Interfaces:
Serializable, Comparable<DescriptionKind>, java.lang.constant.Constable
The kind attribute defines how a description should be used.
Only one description element of each kind can be specified. A description element without a kind
DEFAULT
is used as a default value.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionUse this DescriptionKind if the description of the application does not specify a specific usage (Default).Use this DescriptionKind if the description of the application is going to appear in one row in a list or a table.Use this DescriptionKind if the description of the application is going to be displayed in a situation where there is room for a paragraph.Use this DescriptionKind if the description of the application is intended to be used as a tooltip. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DescriptionKindfromString(String name) Creates an enum value from the given stringgetValue()The attribute value name as used in the JSR-56 specification or theParser.static DescriptionKindReturns the enum constant of this type with the specified name.static DescriptionKind[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ONE_LINE
Use this DescriptionKind if the description of the application is going to appear in one row in a list or a table. -
SHORT
Use this DescriptionKind if the description of the application is going to be displayed in a situation where there is room for a paragraph. -
TOOLTIP
Use this DescriptionKind if the description of the application is intended to be used as a tooltip. -
DEFAULT
Use this DescriptionKind if the description of the application does not specify a specific usage (Default).
-
-
Field Details
-
value
-
-
Constructor Details
-
DescriptionKind
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-
fromString
Creates an enum value from the given string- Parameters:
name- the string name- Returns:
- an enum value for the given string
- Throws:
IllegalArgumentException- of there is no enum value for the given name
-