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, waitfindCMAttribute, findCMElement, getEntitiespublic CMXSDDocument(org.apache.xerces.xs.XSModel model,
org.apache.xerces.impl.xs.XSLoaderImpl xsLoaderImpl)
public boolean hasNamespace(String namespaceURI)
CMDocumenthasNamespace in interface CMDocumentpublic Collection<CMElementDeclaration> getElements()
CMDocumentgetElements in interface CMDocumentpublic CMElementDeclaration findCMElement(DOMElement element, String namespace)
CMDocumentfindCMElement in interface CMDocumentelement - 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.XSElementDeclHelperpublic org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode originNode)
CMDocumentfindTypeLocation in interface CMDocumentoriginNode - the nodepublic boolean isDirty()
CMDocumentisDirty in interface CMDocumentCopyright © 2024. All rights reserved.