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
ConstructorsModifierConstructorDescriptionprotectedAbstractRioSetting(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, waitMethods 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:RioSettingA unique key for this parser setting.- Specified by:
getKeyin interfaceRioSetting<T>- Returns:
- A unique key identifying this parser setting.
-
getDescription
Description copied from interface:RioSettingThe human readable name for this parser setting- Specified by:
getDescriptionin interfaceRioSetting<T>- Returns:
- The name for this parser setting.
-
getDefaultValue
Description copied from interface:RioSettingReturns the default value for this parser setting if it is not set by a user.- Specified by:
getDefaultValuein interfaceRioSetting<T>- Returns:
- The default value for this parser setting.
-
equals
-
hashCode
public int hashCode() -
toString
-