Class PropertyDesc
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.jnlp.element.resource.PropertyDesc
-
public class PropertyDesc extends java.lang.ObjectThe property element describes a name/value pair that is available to the launched application as a system property.- Version:
- $Revision: 1.6 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringkeythe key namestatic java.lang.StringNAME_ATTRIBUTEprivate java.lang.Stringvaluethe valuestatic java.lang.StringVALUE_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description PropertyDesc(java.lang.String key, java.lang.String value)Creates a property descriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyDescfromString(java.lang.String prop)java.lang.StringgetKey()java.lang.StringgetValue()
-
-
-
Field Detail
-
NAME_ATTRIBUTE
public static final java.lang.String NAME_ATTRIBUTE
- See Also:
- Constant Field Values
-
VALUE_ATTRIBUTE
public static final java.lang.String VALUE_ATTRIBUTE
- See Also:
- Constant Field Values
-
key
private final java.lang.String key
the key name
-
value
private final java.lang.String value
the value
-
-
Method Detail
-
fromString
public static PropertyDesc fromString(java.lang.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 java.lang.String getKey()
- Returns:
- the property's key
-
getValue
public java.lang.String getValue()
- Returns:
- the property's value
-
-