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

public enum DescriptionKind extends Enum<DescriptionKind>
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 Constants
    Enum Constant
    Description
    Use 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
    Modifier and Type
    Field
    Description
    private final String
     
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    private
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates an enum value from the given string
    The attribute value name as used in the JSR-56 specification or the Parser.
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • ONE_LINE

      public static final DescriptionKind 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

      public static final DescriptionKind 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

      public static final DescriptionKind TOOLTIP
      Use this DescriptionKind if the description of the application is intended to be used as a tooltip.
    • DEFAULT

      public static final DescriptionKind DEFAULT
      Use this DescriptionKind if the description of the application does not specify a specific usage (Default).
  • Field Details

    • value

      private final String value
  • Constructor Details

    • DescriptionKind

      private DescriptionKind(String value)
  • Method Details

    • values

      public static DescriptionKind[] 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

      public static DescriptionKind valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      The attribute value name as used in the JSR-56 specification or the Parser.
      Returns:
      the attribute value name
    • fromString

      public static DescriptionKind fromString(String name) throws IllegalArgumentException
      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