Package org.eclipse.rdf4j.rio.helpers
Class AbstractRioSetting<T>
java.lang.Object
org.eclipse.rdf4j.rio.helpers.AbstractRioSetting<T>
- Type Parameters:
T
- the setting type
- All Implemented Interfaces:
Serializable
,RioSetting<T>
- Direct Known Subclasses:
BooleanRioSetting
,ClassRioSetting
,LongRioSetting
,RioSettingImpl
,StringRioSetting
Base class for
RioSetting
. Includes base functionality for reading default values from system properties.- Author:
- Jeen Broekstra
- See Also:
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractRioSetting
(String key, String description, T defaultValue) Create a new setting object that will be used to reference the given setting. -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.rdf4j.rio.RioSetting
convert
-
Constructor Details
-
AbstractRioSetting
Create a new setting object that will be used to reference the given setting.- Parameters:
key
- A unique key to use for this setting.description
- A short human-readable description for this setting.defaultValue
- An immutable value specifying the default for this setting. This can be optionally be overridden by a system property with a name equal to the setting's unique key.
-
-
Method Details
-
getKey
Description copied from interface:RioSetting
A unique key for this parser setting.- Specified by:
getKey
in interfaceRioSetting<T>
- Returns:
- A unique key identifying this parser setting.
-
getDescription
Description copied from interface:RioSetting
The human readable name for this parser setting- Specified by:
getDescription
in interfaceRioSetting<T>
- Returns:
- The name for this parser setting.
-
getDefaultValue
Description copied from interface:RioSetting
Returns the default value for this parser setting if it is not set by a user.- Specified by:
getDefaultValue
in interfaceRioSetting<T>
- Returns:
- The default value for this parser setting.
-
equals
-
hashCode
public int hashCode() -
toString
-