public class CMXSDDocument extends Object implements CMDocument, org.apache.xerces.impl.xs.XSElementDeclHelper
| Constructor and Description |
|---|
CMXSDDocument(org.apache.xerces.xs.XSModel model,
String uri) |
| 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) |
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.
|
public CMXSDDocument(org.apache.xerces.xs.XSModel model,
String uri)
public boolean hasNamespace(String namespaceURI)
CMDocumenthasNamespace in interface CMDocumentpublic String getURI()
CMDocumentgetURI in interface CMDocumentpublic Collection<CMElementDeclaration> getElements()
CMDocumentgetElements in interface CMDocumentpublic CMElementDeclaration findCMElement(DOMElement element, String namespace)
CMDocumentfindCMElement in interface CMDocumentelement - the XML elementpublic 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 © 2020. All rights reserved.