public interface CMDocument
Modifier and Type | Method and Description |
---|---|
CMElementDeclaration |
findCMElement(DOMElement element,
String namespace)
Returns the declared element which matches the given XML element and null
otherwise.
|
org.eclipse.lsp4j.LocationLink |
findTypeLocation(DOMNode node)
Returns the location of the type definition of the given node.
|
Collection<CMElementDeclaration> |
getElements()
Returns the elements declaration of the model document root.
|
String |
getURI()
Returns the root URI of the model document.
|
boolean |
hasNamespace(String namespaceURI)
Returns true if the model document defines the given namespace and false
otherwise.
|
boolean |
isDirty()
Returns true if the content model document is dirty and false otherwise.
|
boolean hasNamespace(String namespaceURI)
namespaceURI
- Collection<CMElementDeclaration> getElements()
CMElementDeclaration findCMElement(DOMElement element, String namespace)
element
- the XML elementString getURI()
org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode node)
node
- the nodeboolean isDirty()
Copyright © 2020. All rights reserved.