Enum Class GrammarReference.Kind

java.lang.Object
java.lang.Enum<GrammarReference.Kind>
org.eclipse.lemminx.extensions.index.GrammarReference.Kind
All Implemented Interfaces:
Serializable, Comparable<GrammarReference.Kind>, Constable
Enclosing class:
GrammarReference

public static enum GrammarReference.Kind extends Enum<GrammarReference.Kind>
The kind of grammar reference.
  • Enum Constant Details

    • XML_MODEL_HREF

      public static final GrammarReference.Kind XML_MODEL_HREF
      <?xml-model href="..."?> (UC14)
    • SCHEMA_LOCATION

      public static final GrammarReference.Kind SCHEMA_LOCATION
      xsi:schemaLocation="ns path" — the path part (UC16)
    • NO_NS_SCHEMA_LOCATION

      public static final GrammarReference.Kind NO_NS_SCHEMA_LOCATION
      xsi:noNamespaceSchemaLocation="..." (UC15)
    • DOCTYPE_SYSTEM

      public static final GrammarReference.Kind DOCTYPE_SYSTEM
      <!DOCTYPE ... SYSTEM "..."> (UC17/UC18)
    • DOCTYPE_PUBLIC

      public static final GrammarReference.Kind DOCTYPE_PUBLIC
      <!DOCTYPE ... PUBLIC "..." ...> — the public ID
    • INCLUDE_SCHEMA_LOCATION

      public static final GrammarReference.Kind INCLUDE_SCHEMA_LOCATION
      schemaLocation="..." on xs:include/xs:import
    • HREF

      public static final GrammarReference.Kind HREF
      href="..." on XInclude, XSLT import/include (UC21)
    • CATALOG_URI

      public static final GrammarReference.Kind CATALOG_URI
      uri="..." on OASIS catalog entries (uri, public, system, etc.)
    • NAMESPACE_DECL

      public static final GrammarReference.Kind NAMESPACE_DECL
      Namespace URI from xmlns="..." or xmlns:prefix="...", or the namespace part of xsi:schemaLocation="ns path". Used by catalog code lenses to count documents bound to a grammar via namespace resolution (resolveURI(namespaceURI) in LSPXMLCatalogResolver).
  • Method Details

    • values

      public static GrammarReference.Kind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static GrammarReference.Kind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null