public interface CMDocument
| Modifier and Type | Method and Description |
|---|---|
default CMAttributeDeclaration |
findCMAttribute(DOMElement element,
String attributeName) |
default CMElementDeclaration |
findCMElement(DOMElement element)
Returns the declared element which matches the given XML element and null
otherwise.
|
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.
|
default List<Entity> |
getEntities()
Returns list of declared entities.
|
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()
default CMElementDeclaration findCMElement(DOMElement element)
element - the XML elementCMElementDeclaration findCMElement(DOMElement element, String namespace)
element - the XML elementnamespace - the given namespacedefault CMAttributeDeclaration findCMAttribute(DOMElement element, String attributeName)
org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode node)
node - the nodeboolean isDirty()
Copyright © 2022. All rights reserved.