public class BasicOption<T> extends Object implements Option<T>
Option
interface for OCL parsing options.Constructor and Description |
---|
BasicOption(String pluginId,
String key,
T defaultValue)
Initializes me with my plugin-qualified key and default value.
|
BasicOption(String key,
T defaultValue)
Initializes me with my key and default value for an unspecified plugin.
|
Modifier and Type | Method and Description |
---|---|
T |
getDefaultValue()
Obtains the option's default value.
|
String |
getKey()
Obtains my string key, which may be used for persistence in a
preference store.
|
String |
getPluginId() |
String |
toString() |
public BasicOption(String key, T defaultValue)
key
- identifies medefaultValue
- my default valuepublic final String getKey()
Option
public String getPluginId()
public final T getDefaultValue()
Option
getDefaultValue
in interface Option<T>
null
Copyright © 2005, 2018 IBM Corporation and others. All Rights Reserved.