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,IntegerRioSetting,LongRioSetting,RioSettingImpl,SetRioSetting,StringRioSetting
public abstract class AbstractRioSetting<T> extends Object implements RioSetting<T>
Base class forRioSetting. Includes base functionality for reading default values from system properties.- Author:
- Jeen Broekstra
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractRioSetting(String key, String description, T defaultValue)Create a new setting object that will be used to reference the given setting.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object other)TgetDefaultValue()Returns the default value for this parser setting if it is not set by a user.StringgetDescription()The human readable name for this parser settingStringgetKey()A unique key for this parser setting.inthashCode()StringtoString()-
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 Detail
-
AbstractRioSetting
protected AbstractRioSetting(String key, String description, T defaultValue)
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 Detail
-
getKey
public String 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
public String 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
public T 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.
-
-