Package org.eclipse.rdf4j.rio.helpers
Class SetRioSetting<T>
- java.lang.Object
-
- org.eclipse.rdf4j.rio.helpers.AbstractRioSetting<Set<T>>
-
- org.eclipse.rdf4j.rio.helpers.SetRioSetting<T>
-
- Type Parameters:
T
- the type of the elements in the set
- All Implemented Interfaces:
Serializable
,RioSetting<Set<T>>
public final class SetRioSetting<T> extends AbstractRioSetting<Set<T>>
ARioSetting
with aSet
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 a JSON array of the desired values.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SetRioSetting(String key, String description, Set<T> defaultValue)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<T>
convert(String stringRepresentation)
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
-
-
-
-
Method Detail
-
convert
public Set<T> convert(String stringRepresentation)
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:
stringRepresentation
- a string representation of a value for this setting.- Returns:
- The corresponding object of type T for the supplied string value.
-
-