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_FEATURE
DTD_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, setProperty
any, 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, unparsedEntityDecl
public CMDTDDocument()
public CMDTDDocument(String uri)
public boolean hasNamespace(String namespaceURI)
CMDocument
hasNamespace
in interface CMDocument
public Collection<CMElementDeclaration> getElements()
CMDocument
getElements
in interface CMDocument
public String getURI()
getURI
in interface CMDocument
public CMElementDeclaration findCMElement(DOMElement element, String namespace)
CMDocument
findCMElement
in interface CMDocument
element
- 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.XMLDTDContentModelHandler
startContentModel
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public void element(String elementName, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
element
in interface org.apache.xerces.xni.XMLDTDContentModelHandler
element
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public void endContentModel(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endContentModel
in interface org.apache.xerces.xni.XMLDTDContentModelHandler
endContentModel
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public void startAttlist(String elementName, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startAttlist
in interface org.apache.xerces.xni.XMLDTDHandler
startAttlist
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public 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.XMLDTDHandler
attributeDecl
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public void endAttlist(org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
endAttlist
in interface org.apache.xerces.xni.XMLDTDHandler
endAttlist
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public 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.XMLGrammarLoader
loadGrammar
in class org.apache.xerces.impl.dtd.XMLDTDLoader
IOException
org.apache.xerces.xni.XNIException
public void loadInternalDTD(String internalSubset, String baseSystemId, String systemId) throws org.apache.xerces.xni.XNIException, IOException
org.apache.xerces.xni.XNIException
IOException
public 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.XMLDTDHandler
comment
in class org.apache.xerces.impl.dtd.XMLDTDProcessor
org.apache.xerces.xni.XNIException
public Map<String,org.eclipse.lemminx.extensions.dtd.contentmodel.CMDTDDocument.DTDElementInfo> getHierarchiesMap()
public org.eclipse.lsp4j.LocationLink findTypeLocation(DOMNode node)
CMDocument
findTypeLocation
in interface CMDocument
node
- the nodepublic boolean isDirty()
CMDocument
isDirty
in interface CMDocument
Copyright © 2020. All rights reserved.