Class XMLModel

java.lang.Object
org.eclipse.lemminx.dom.XMLModel

public class XMLModel extends Object
XML model processing instruction.
        <?xml-model href="http://www.docbook.org/xml/5.0/xsd/docbook.xsd"?>
 
  • Constructor Details

  • Method Details

    • getHref

      public String getHref()
      Returns the location of the referenced schema
      Returns:
      the location of the referenced schema
    • isXMLModel

      public static boolean isXMLModel(DOMNode node)
      Returns true if the given node is a xml-model processing instruction and false otherwise.
      Parameters:
      node - the DOM node.
      Returns:
      true if the given node is a xml-model processing instruction and false otherwise.
    • getHrefNode

      public DOMRange getHrefNode()
      Returns the href range and null otherwise.
      Returns:
      the href range and null otherwise.
    • isApplicable

      public boolean isApplicable()
      Returns true if the xml-model is applicable and false otherwise.
      Returns:
      true if the xml-model is applicable and false otherwise.