Class CatalogEntry

java.lang.Object
org.eclipse.lemminx.extensions.catalog.CatalogEntry
Direct Known Subclasses:
CatalogCatalogEntry, URICatalogEntry

public abstract class CatalogEntry extends Object
Represents a catalog entry that references an external document
  • Constructor Details

    • CatalogEntry

      protected CatalogEntry(String baseURI, DOMElement entryElement)
      Parameters:
      baseURI - 's xml:base + 's xml:base (if in a )
      entryElement - the element that corresponds with this catalog entry
  • Method Details

    • getBaseURI

      public String getBaseURI()
      Returns the base URI for this catalog entry
      Returns:
      the base URI for this catalog entry
    • getEntryElement

      protected DOMElement getEntryElement()
      Returns the element that corresponds with this catalog entry
      Returns:
      the element that corresponds with this catalog entry
    • getLinkRange

      public abstract DOMRange getLinkRange()
      Returns the range in the document where the link to an external document is, or null if this catalog entry does not refer to an external document
      Returns:
      the range in the document where the link to an external document is
    • getResolvedURI

      public abstract String getResolvedURI()
      Returns the URI for the document that this catalog entry references, or null if this catalog entry does not refer to an external document
      Returns:
      the URI for the document that this catalog entry references