Class ConfigurationItem


  • public class ConfigurationItem
    extends java.lang.Object
    A ConfigurationItem consist of the configuration section to ask for and an additional scope URI. The configuration section asked for is defined by the server and doesn’t necessarily need to correspond to the configuration store used by the client. So a server might ask for a configuration cpp.formatterOptions but the client stores the configuration in an XML store layout differently. It is up to the client to do the necessary conversion. If a scope URI is provided the client should return the setting scoped to the provided resource. If the client for example uses EditorConfig to manage its settings the configuration should be returned for the passed resource URI. If the client can't provide a configuration setting for a given scope then null needs to be present in the returned array.

    Since 3.6.0

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getScopeUri()
      The scope to get the configuration section for.
      java.lang.String getSection()
      The configuration section asked for.
      int hashCode()  
      void setScopeUri​(java.lang.String scopeUri)
      The scope to get the configuration section for.
      void setSection​(java.lang.String section)
      The configuration section asked for.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ConfigurationItem

        public ConfigurationItem()
    • Method Detail

      • getScopeUri

        public java.lang.String getScopeUri()
        The scope to get the configuration section for.
      • setScopeUri

        public void setScopeUri​(java.lang.String scopeUri)
        The scope to get the configuration section for.
      • getSection

        public java.lang.String getSection()
        The configuration section asked for.
      • setSection

        public void setSection​(java.lang.String section)
        The configuration section asked for.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object