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>>
A RioSetting with a Set 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:
  • Constructor Details

    • SetRioSetting

      public SetRioSetting(String key, String description, Set<T> defaultValue)
  • Method Details

    • 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.