public class ContentModelManager extends Object
Constructor and Description |
---|
ContentModelManager(URIResolverExtensionManager resolverManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
dependsOnGrammar(DOMDocument document,
String grammarURI)
Returns true if the given document is linked to the given grammar URI (XML
Schema, DTD) and false otherwise.
|
CMDocument |
findCMDocument(DOMDocument xmlDocument,
String namespaceURI) |
CMDocument |
findCMDocument(DOMElement element,
String namespaceURI) |
CMElementDeclaration |
findCMElement(DOMElement element) |
CMElementDeclaration |
findCMElement(DOMElement element,
String namespaceURI)
Returns the declared element which matches the given XML element and null
otherwise.
|
CMDocument |
findInternalCMDocument(DOMDocument xmlDocument,
String namespaceURI) |
CMDocument |
findInternalCMDocument(DOMElement element,
String namespaceURI) |
CMElementDeclaration |
findInternalCMElement(DOMElement element) |
CMElementDeclaration |
findInternalCMElement(DOMElement element,
String namespaceURI)
Returns the declared element which matches the given XML element and null
otherwise.
|
org.apache.xerces.xni.grammars.XMLGrammarPool |
getGrammarPool() |
void |
refreshCatalogs()
Refresh the XML catalogs.
|
void |
registerModelProvider(ContentModelProvider modelProvider) |
boolean |
setCatalogs(String[] catalogs)
Set up XML catalogs.
|
boolean |
setFileAssociations(XMLFileAssociation[] fileAssociations)
Set file associations.
|
void |
setRootURI(String rootUri) |
void |
setUseCache(boolean useCache) |
void |
unregisterModelProvider(ContentModelProvider modelProvider) |
public ContentModelManager(URIResolverExtensionManager resolverManager)
public CMElementDeclaration findCMElement(DOMElement element) throws Exception
Exception
public CMElementDeclaration findCMElement(DOMElement element, String namespaceURI) throws Exception
element
- the XML elementException
public CMDocument findCMDocument(DOMElement element, String namespaceURI)
public CMDocument findCMDocument(DOMDocument xmlDocument, String namespaceURI)
public boolean dependsOnGrammar(DOMDocument document, String grammarURI)
document
- the DOM documentgrammarURI
- the grammar URIpublic CMElementDeclaration findInternalCMElement(DOMElement element) throws Exception
Exception
public CMElementDeclaration findInternalCMElement(DOMElement element, String namespaceURI) throws Exception
element
- the XML elementException
public CMDocument findInternalCMDocument(DOMElement element, String namespaceURI)
public CMDocument findInternalCMDocument(DOMDocument xmlDocument, String namespaceURI)
public boolean setCatalogs(String[] catalogs)
catalogs
- list of XML catalog files.public void refreshCatalogs()
public boolean setFileAssociations(XMLFileAssociation[] fileAssociations)
fileAssociations
- public void setRootURI(String rootUri)
public void setUseCache(boolean useCache)
public void registerModelProvider(ContentModelProvider modelProvider)
public void unregisterModelProvider(ContentModelProvider modelProvider)
public org.apache.xerces.xni.grammars.XMLGrammarPool getGrammarPool()
Copyright © 2020. All rights reserved.