Class RNCDatatypeLibrary.Entry
java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCDatatypeLibrary.Entry
- Enclosing class:
RNCDatatypeLibrary
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.eclipse.lsp4j.MarkupContentgetDocumentation(boolean supportsMarkdown) Returns the documentation as aMarkupContent, selecting Markdown or plain text based on client capabilities.getName()Returns the datatype name.
-
Constructor Details
-
Entry
Creates a new datatype entry.- Parameters:
name- the datatype name (e.g."integer").markdown- the Markdown documentation, ornull.plaintext- the plain text documentation, ornull.
-
-
Method Details
-
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 aMarkupContent, selecting Markdown or plain text based on client capabilities.- Parameters:
supportsMarkdown-trueif the client supports Markdown.- Returns:
- the documentation content, or
nullif none available.
-