public class EnumeratedOption<T extends java.lang.Enum<T>> extends BasicOption<T>
PreferenceableOption
interface for enum OCL options.PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
Modifier and Type | Field and Description |
---|---|
protected java.lang.Class<T> |
enumType |
defaultValue, key, pluginId
Constructor and Description |
---|
EnumeratedOption(java.lang.String pluginId,
java.lang.String key,
T defaultValue,
java.lang.Class<T> enumType) |
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
getEnumType() |
T |
getValueOf(java.lang.String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
getDefaultValue, getKey, getPluginId
@NonNull public final java.lang.Class<T> getEnumType()
@Nullable public T getValueOf(@Nullable java.lang.String string)
PreferenceableOption