public class CMXSDDocument extends Object implements CMDocument, org.apache.xerces.impl.xs.XSElementDeclHelper
Constructor and Description |
---|
CMXSDDocument(org.apache.xerces.xs.XSModel model,
org.apache.xerces.impl.xs.XSLoaderImpl xsLoaderImpl) |
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 originNode)
Returns the location of the type definition of the given node.
|
Collection<CMElementDeclaration> |
getElements()
Returns the elements declaration of the model document root.
|
org.apache.xerces.impl.xs.XSElementDecl |
getGlobalElementDecl(org.apache.xerces.xni.QName element) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findCMAttribute, findCMElement, getEntities
public CMXSDDocument(org.apache.xerces.xs.XSModel model, org.apache.xerces.impl.xs.XSLoaderImpl xsLoaderImpl)
public boolean hasNamespace(String namespaceURI)
CMDocument
hasNamespace
in interface CMDocument
public Collection<CMElementDeclaration> getElements()
CMDocument
getElements
in interface CMDocument
public CMElementDeclaration findCMElement(DOMElement element, String namespace)
CMDocument
findCMElement
in interface CMDocument
element
- the XML elementnamespace
- the given namespacepublic org.apache.xerces.impl.xs.XSElementDecl getGlobalElementDecl(org.apache.xerces.xni.QName element)
getGlobalElementDecl
in interface org.apache.xerces.impl.xs.XSElementDeclHelper
public org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode originNode)
CMDocument
findTypeLocation
in interface CMDocument
originNode
- the nodepublic boolean isDirty()
CMDocument
isDirty
in interface CMDocument
Copyright © 2021. All rights reserved.