Package org.eclipse.rdf4j.rio.helpers
Class BooleanRioSetting
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.AbstractRioSetting<java.lang.Boolean>
-
- org.eclipse.rdf4j.rio.helpers.BooleanRioSetting
-
- All Implemented Interfaces:
java.io.Serializable
,RioSetting<java.lang.Boolean>
public class BooleanRioSetting extends AbstractRioSetting<java.lang.Boolean>
ARioSetting
with aBoolean
value. The given default for the setting can be overridden by means of a System property with a name equal to the setting key, and a string value of "true" or "false" (ignoring case).- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description BooleanRioSetting(java.lang.String key, java.lang.String description, java.lang.Boolean defaultValue)
Creates a new booleanRioSetting
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
convert(java.lang.String stringValue)
Converts a String to a Boolean-
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
-
-
Constructor Detail
-
BooleanRioSetting
public BooleanRioSetting(java.lang.String key, java.lang.String description, java.lang.Boolean defaultValue)
Creates a new booleanRioSetting
.- 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.
-
-
Method Detail
-
convert
public java.lang.Boolean convert(java.lang.String stringValue)
Converts a String to a Boolean- Parameters:
stringValue
- a string representation of a value for this setting.- Returns:
- a Boolean representing the supplied string value. If the string value is "true" (ignoring case), the
returned Boolean will be
true
, otherwisefalse
.
-
-