public class EnumeratedOption<T extends Enum<T>> extends BasicOption<T> implements PreferenceableOption<T>
PreferenceableOption
interface for enum OCL options.PreferenceableOption.Listener, PreferenceableOption.PreferenceableOption2<T>
Constructor and Description |
---|
EnumeratedOption(String pluginId,
String key,
T defaultValue,
Class<T> enumType) |
Modifier and Type | Method and Description |
---|---|
Class<T> |
getEnumType() |
T |
getValueOf(String string)
Returns an option value from a String typically obtained from an Eclipse Preference file.
|
getDefaultValue, getKey, getPluginId, toString
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultValue, getKey, getPluginId
public T getValueOf(String string)
PreferenceableOption
getValueOf
in interface PreferenceableOption<T extends Enum<T>>
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.