public class CMDTDDocument extends org.apache.xerces.impl.dtd.XMLDTDLoader implements CMDocument
BALANCE_SYNTAX_TREES, ENTITY_RESOLVER, ERROR_HANDLER, fDTDScanner, fEntityManager, fEntityResolver, fLocale, LOCALE, STANDARD_URI_CONFORMANT_FEATUREDTD_VALIDATOR, ERROR_REPORTER, fDTDContentModelHandler, fDTDContentModelSource, fDTDGrammar, fDTDHandler, fDTDSource, fDTDValidation, fErrorReporter, fGrammarBucket, fGrammarPool, fInDTDIgnore, fSymbolTable, fValidation, fValidator, fWarnDuplicateAttdef, fWarnOnUndeclaredElemdef, GRAMMAR_POOL, NOTIFY_CHAR_REFS, PARSER_SETTINGS, SYMBOL_TABLE, VALIDATION, WARN_ON_DUPLICATE_ATTDEF, WARN_ON_UNDECLARED_ELEMDEF| Constructor and Description |
|---|
CMDTDDocument() |
CMDTDDocument(String uri) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeDecl(String elementName,
String attributeName,
String type,
String[] enumeration,
String defaultType,
org.apache.xerces.xni.XMLString defaultValue,
org.apache.xerces.xni.XMLString nonNormalizedDefaultValue,
org.apache.xerces.xni.Augmentations augs) |
void |
comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs) |
void |
element(String elementName,
org.apache.xerces.xni.Augmentations augs) |
void |
endAttlist(org.apache.xerces.xni.Augmentations augs) |
void |
endContentModel(org.apache.xerces.xni.Augmentations augs) |
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.
|
Map<String,org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDDocument.DTDElementInfo> |
getHierarchiesMap() |
String |
getURI()
Returns the URI of this document, is none was provided this returns null.
|
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.
|
org.apache.xerces.xni.grammars.Grammar |
loadGrammar(org.apache.xerces.xni.parser.XMLInputSource source) |
void |
loadInternalDTD(String internalSubset,
String baseSystemId,
String systemId) |
void |
startAttlist(String elementName,
org.apache.xerces.xni.Augmentations augs) |
void |
startContentModel(String elementName,
org.apache.xerces.xni.Augmentations augs) |
createDTDScanner, getEntityResolver, getErrorHandler, getFeature, getLocale, getProperty, getRecognizedFeatures, getRecognizedProperties, getScannerVersion, loadGrammarWithContext, reset, setEntityResolver, setErrorHandler, setFeature, setLocale, setPropertyany, checkStandaloneEntityRef, elementDecl, empty, endConditional, endDTD, endExternalSubset, endGroup, endParameterEntity, externalEntityDecl, getDTDContentModelHandler, getDTDContentModelSource, getDTDHandler, getDTDSource, getFeatureDefault, getPropertyDefault, ignoredCharacters, internalEntityDecl, isValidName, isValidNmtoken, notationDecl, occurrence, pcdata, processingInstruction, reset, separator, setDTDContentModelHandler, setDTDContentModelSource, setDTDHandler, setDTDSource, startConditional, startDTD, startExternalSubset, startGroup, startParameterEntity, textDecl, unparsedEntityDeclpublic CMDTDDocument()
public CMDTDDocument(String uri)
public boolean hasNamespace(String namespaceURI)
CMDocumenthasNamespace in interface CMDocumentpublic Collection<CMElementDeclaration> getElements()
CMDocumentgetElements in interface CMDocumentpublic String getURI()
getURI in interface CMDocumentpublic CMElementDeclaration findCMElement(DOMElement element, String namespace)
CMDocumentfindCMElement in interface CMDocumentelement - the XML elementpublic void startContentModel(String elementName, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandlerstartContentModel in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic void element(String elementName, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
element in interface org.apache.xerces.xni.XMLDTDContentModelHandlerelement in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic void endContentModel(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endContentModel in interface org.apache.xerces.xni.XMLDTDContentModelHandlerendContentModel in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic void startAttlist(String elementName, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startAttlist in interface org.apache.xerces.xni.XMLDTDHandlerstartAttlist in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, org.apache.xerces.xni.XMLString defaultValue, org.apache.xerces.xni.XMLString nonNormalizedDefaultValue, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
attributeDecl in interface org.apache.xerces.xni.XMLDTDHandlerattributeDecl in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic void endAttlist(org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
endAttlist in interface org.apache.xerces.xni.XMLDTDHandlerendAttlist in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic org.apache.xerces.xni.grammars.Grammar loadGrammar(org.apache.xerces.xni.parser.XMLInputSource source)
throws IOException,
org.apache.xerces.xni.XNIException
loadGrammar in interface org.apache.xerces.xni.grammars.XMLGrammarLoaderloadGrammar in class org.apache.xerces.impl.dtd.XMLDTDLoaderIOExceptionorg.apache.xerces.xni.XNIExceptionpublic void loadInternalDTD(String internalSubset, String baseSystemId, String systemId) throws org.apache.xerces.xni.XNIException, IOException
org.apache.xerces.xni.XNIExceptionIOExceptionpublic void comment(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
throws org.apache.xerces.xni.XNIException
comment in interface org.apache.xerces.xni.XMLDTDHandlercomment in class org.apache.xerces.impl.dtd.XMLDTDProcessororg.apache.xerces.xni.XNIExceptionpublic Map<String,org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDDocument.DTDElementInfo> getHierarchiesMap()
public org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode node)
CMDocumentfindTypeLocation in interface CMDocumentnode - the nodepublic boolean isDirty()
CMDocumentisDirty in interface CMDocumentCopyright © 2020. All rights reserved.