Package org.eclipse.rdf4j.rio
Interface RioSetting<T>
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractRioSetting
,BooleanRioSetting
,ClassRioSetting
,IntegerRioSetting
,LongRioSetting
,RioSettingImpl
,SetRioSetting
,StringRioSetting
Identifies a parser setting along with its default value.
- Author:
- Peter Ansell
-
Method Summary
Modifier and TypeMethodDescriptiondefault T
Attempts to convert from a string to a type-safe representation based on the generic type of this setting.Returns the default value for this parser setting if it is not set by a user.The human readable name for this parser settinggetKey()
A unique key for this parser setting.
-
Method Details
-
getKey
String getKey()A unique key for this parser setting.- Returns:
- A unique key identifying this parser setting.
-
getDescription
String getDescription()The human readable name for this parser setting- Returns:
- The name for this parser setting.
-
getDefaultValue
T getDefaultValue()Returns the default value for this parser setting if it is not set by a user.- Returns:
- The default value for this parser setting.
-
convert
Attempts to convert from a string to a type-safe representation based on the generic type of this setting.- Parameters:
stringRepresentation
- a string representation of a value for this setting.- Returns:
- The corresponding object of type T for the supplied string value.
- Throws:
RioConfigurationException
- if the setting type does not provide conversion from a string to the expected type.
-