Interface IPropCnrKStringSettings<KSTRING_OPTION extends IPropCnrKString>

    • Method Detail

      • get

        default KString get​(KSTRING_OPTION option)
        Gets a KString option.
        Parameters:
        option - The option to retrieve.
        Returns:
        The option value set, or its default value if not set (can also be null).
      • getNoDefault

        default java.lang.String getNoDefault​(KSTRING_OPTION option)
        Gets a stroke option without default value, i.e. returns null if not set.
        Parameters:
        option - The option to retrieve.
        Returns:
        The option value set, or null if not set.
      • set

        default boolean set​(KSTRING_OPTION option,
                            java.lang.String value)
                     throws PropValidateException
        Sets a KString option as a plain string.
        Parameters:
        option - The option to set.
        value - The plain string value to set, or null to set default value.
        Returns:
        true if the value was changed, false for no change.
        Throws:
        PropValidateException - If the value doesn't validate.
      • set

        default boolean set​(KSTRING_OPTION option,
                            KString value)
                     throws PropValidateException
        Sets a KString option.
        Parameters:
        option - The option to set.
        value - The KString value to set, or null to set default value.
        Returns:
        true if the value was changed, false for no change.
        Throws:
        PropValidateException - If the value doesn't validate.