Class PropertyDesc

java.lang.Object
net.adoptopenjdk.icedteaweb.jnlp.element.resource.PropertyDesc

public class PropertyDesc extends Object
The property element describes a name/value pair that is available to the launched application as a system property.
Version:
$Revision: 1.6 $
  • Field Details

  • Constructor Details

    • PropertyDesc

      public PropertyDesc(String key, String value)
      Creates a property descriptor.
      Parameters:
      key - the key name
      value - the value
  • Method Details

    • fromString

      public static PropertyDesc fromString(String prop) throws LaunchException
      Parameters:
      prop - - the property to be parsed from format key=value
      Returns:
      new PropertyDesc based on parsed key=value, though composed from key and value
      Throws:
      LaunchException - if creations fails
    • getKey

      public String getKey()
      Returns:
      the property's key
    • getValue

      public String getValue()
      Returns:
      the property's value