Package org.eclipse.xtext.preferences
Class StringKey
- java.lang.Object
-
- org.eclipse.xtext.preferences.PreferenceKey
-
- org.eclipse.xtext.preferences.TypedPreferenceKey<java.lang.String>
-
- org.eclipse.xtext.preferences.StringKey
-
public class StringKey extends TypedPreferenceKey<java.lang.String>
A string values typed preference key.- Since:
- 2.26
-
-
Constructor Summary
Constructors Constructor Description StringKey(java.lang.String id, java.lang.String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
toString(java.lang.String value)
Convert the given value to its string representation.java.lang.String
toValue(java.lang.String string)
Convert the given string to its type-safe value.-
Methods inherited from class org.eclipse.xtext.preferences.PreferenceKey
equals, getDefaultValue, getId, hashCode, toString
-
-
-
-
Method Detail
-
toString
public java.lang.String toString(java.lang.String value)
Description copied from class:TypedPreferenceKey
Convert the given value to its string representation. A null value is converted to a null string.- Specified by:
toString
in classTypedPreferenceKey<java.lang.String>
-
toValue
public java.lang.String toValue(java.lang.String string)
Description copied from class:TypedPreferenceKey
Convert the given string to its type-safe value. The null string is converted to the null value.- Specified by:
toValue
in classTypedPreferenceKey<java.lang.String>
-
-