Interface ConfigurationModel

  • All Known Implementing Classes:
    AbstractConfigurationModel

    public interface ConfigurationModel
    This interface is used to pass configuration properties to the Toolkit. The parser and tokenizer may depend on the configuration. For example, a parser could depend on a charset configuration property. End-users should extend AbstractConfigurationModel instead of implementing this interface.
    Since:
    1.17
    • Method Detail

      • getProperties

        List<ConfigurationProperty> getProperties()
        Gets the properties to be shown, in the same order, in the Configuration tab.
        Returns:
        The list of configuration properties
      • setUpdatedFlag

        void setUpdatedFlag()
        This method is called each time a configuration property's value is changed.
      • getCharset

        Charset getCharset()
        Gets the character set reflecting the current configuration state.
        Returns:
        Charset for the current configuration
        Since:
        1.18
      • getParser

        Parser getParser()
        Gets a parser instance reflecting the current configuration state.
        Returns:
        A parser for the current configuration
      • getTokenizers

        List<org.sonar.colorizer.Tokenizer> getTokenizers()
        Gets tokenizers reflecting the current configuration state.
        Returns:
        Tokenizers for the current configuration