Class RNCNamespaceLibrary
java.lang.Object
org.eclipse.lemminx.extensions.relaxng.grammar.rnc.RNCNamespaceLibrary
Registry of well-known XML namespace URIs for RNC completion.
Loads namespace entries from rnc-namespaces.json at class
initialization time. Each entry has a URI and a human-readable description.
Use case: when the cursor follows = in a namespace
declaration (e.g. namespace ns = |), the completion engine calls
getNamespaces() to offer well-known namespace URIs.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA well-known namespace URI with its description. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<RNCNamespaceLibrary.Entry> Returns all registered namespace entries.
-
Method Details
-
getNamespaces
Returns all registered namespace entries.- Returns:
- an unmodifiable list of namespace entries.
-