Interface RioSetting<T>

    • Method Detail

      • getKey

        String getKey()
        A unique key for this parser setting.
        Returns:
        A unique key identifying this parser setting.
      • getDescription

        String getDescription()
        The human readable name for this parser setting
        Returns:
        The name for this parser setting.
      • getDefaultValue

        T getDefaultValue()
        Returns the default value for this parser setting if it is not set by a user.
        Returns:
        The default value for this parser setting.
      • convert

        default T convert​(String stringRepresentation)
        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.
        Throws:
        RioConfigurationException - if the setting type does not provide conversion from a string to the expected type.