Package org.eclipse.rdf4j.rio.helpers
Class StringRioSetting
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.AbstractRioSetting<java.lang.String>
-
- org.eclipse.rdf4j.rio.helpers.StringRioSetting
-
- All Implemented Interfaces:
java.io.Serializable
,RioSetting<java.lang.String>
public class StringRioSetting extends AbstractRioSetting<java.lang.String>
ARioSetting
with aString
value. The given default for the setting can be overridden by means of a system property with a name equal to the setting key.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description StringRioSetting(java.lang.String key, java.lang.String description, java.lang.String defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
convert(java.lang.String stringValue)
Attempts to convert from a string to a type-safe representation based on the generic type of this setting.-
Methods inherited from class org.eclipse.rdf4j.rio.helpers.AbstractRioSetting
equals, getDefaultValue, getDescription, getKey, hashCode, toString
-
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
convert
public java.lang.String convert(java.lang.String stringValue)
Description copied from interface:RioSetting
Attempts to convert from a string to a type-safe representation based on the generic type of this setting.- Parameters:
stringValue
- a string representation of a value for this setting.- Returns:
- The corresponding object of type T for the supplied string value.
-
-