Package org.eclipse.lemminx.dom
Class XMLModel
java.lang.Object
org.eclipse.lemminx.dom.XMLModel
XML model processing instruction.
<?xml-model href="http://www.docbook.org/xml/5.0/xsd/docbook.xsd"?>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetHref()Returns the location of the referenced schemaReturns the href range and null otherwise.booleanReturns true if the xml-model is applicable and false otherwise.static booleanisXMLModel(DOMNode node) Returns true if the given node is a xml-model processing instruction and false otherwise.
-
Constructor Details
-
XMLModel
-
-
Method Details
-
getHref
Returns the location of the referenced schema- Returns:
- the location of the referenced schema
-
isXMLModel
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
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.
-