java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.settings.RNCSettings

public class RNCSettings extends Object
RNC settings, mapped from xml.rnc.*.

Follows the ContentModelSettings pattern: a settings class deserialized from the client's xml JSON object via JSONUtility.toModel(Object, Class).

  • Constructor Details

    • RNCSettings

      public RNCSettings()
  • Method Details

    • getFormat

      public RNCFormattingSettings getFormat()
    • setFormat

      public void setFormat(RNCFormattingSettings format)
    • getRNCSettings

      public static RNCSettings getRNCSettings(Object initSettings)
      Extracts RNC settings from the given initialization options.

      The initSettings object is the deserialized JSON under the xml key (after AllXMLSettings.getAllXMLSettings()). This method extracts the rnc sub-object from it.

      Parameters:
      initSettings - the settings object (content under xml).
      Returns:
      the RNC settings, or null if not present.