Class RNCDatatypeLibrary.Entry

java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCDatatypeLibrary.Entry
Enclosing class:
RNCDatatypeLibrary

public static class RNCDatatypeLibrary.Entry extends Object
A single datatype entry within a library, holding its name and documentation in both Markdown and plain text formats.

Use case: completion items display the entry name, and hover/resolve show the documentation via getDocumentation(boolean).

  • Constructor Details

    • Entry

      public Entry(String name, String markdown, String plaintext)
      Creates a new datatype entry.
      Parameters:
      name - the datatype name (e.g. "integer").
      markdown - the Markdown documentation, or null.
      plaintext - the plain text documentation, or null.
  • Method Details

    • getName

      public String getName()
      Returns the datatype name.
      Returns:
      the name (e.g. "integer", "ID").
    • getDocumentation

      public org.eclipse.lsp4j.MarkupContent getDocumentation(boolean supportsMarkdown)
      Returns the documentation as a MarkupContent, selecting Markdown or plain text based on client capabilities.
      Parameters:
      supportsMarkdown - true if the client supports Markdown.
      Returns:
      the documentation content, or null if none available.