public class EnumeratedOption<T extends java.lang.Enum<T>> extends BasicOption<T> implements PreferenceableOption<T>
PreferenceableOption
interface for enum OCL options.PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getKey, getPluginId
public final java.lang.Class<T> getEnumType()
public T getValueOf(java.lang.String string)
PreferenceableOption
getValueOf
in interface PreferenceableOption<T extends java.lang.Enum<T>>