public interface RioSetting<T> extends Serializable
Modifier and Type | Method and Description |
---|---|
default T |
convert(String stringRepresentation)
Attempts to convert from a string to a type-safe representation based on the generic type of this setting.
|
T |
getDefaultValue()
Returns the default value for this parser setting if it is not set by a user.
|
String |
getDescription()
The human readable name for this parser setting
|
String |
getKey()
A unique key for this parser setting.
|
String getKey()
String getDescription()
T getDefaultValue()
default T convert(String stringRepresentation)
stringRepresentation
- a string representation of a value for this setting.RioConfigurationException
- if the setting type does not provide conversion from a string to the expected
type.Copyright © 2015-2020 Eclipse Foundation. All Rights Reserved.