Package org.eclipse.lemminx.dom
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 Summary
Constructors Constructor Description XMLModel(DOMProcessingInstruction processingInstruction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHref()Returns the location of the referenced schemaDOMRangegetHrefNode()Returns the href range and null otherwise.booleanisApplicable()Returns 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 Detail
-
XMLModel
public XMLModel(DOMProcessingInstruction processingInstruction)
-
-
Method Detail
-
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.
-
-