public class CMDTDContentModelProvider extends Object implements ContentModelProvider
ContentModelProvider.Identifier
Constructor and Description |
---|
CMDTDContentModelProvider(URIResolverExtensionManager resolverExtensionManager) |
Modifier and Type | Method and Description |
---|---|
boolean |
adaptFor(DOMDocument document,
boolean internal)
Returns the content model provider by using standard association
(xsi:schemaLocation, xsi:noNamespaceSchemaLocation, doctype) and null
otherwise.
|
boolean |
adaptFor(String uri)
Returns true if the given resource uri can be adapted for this content model
and false otherwise.
|
CMDocument |
createCMDocument(String key,
boolean resolveExternalEntities)
Create content model document (XSD, DTD, etc) from the given resource key and
null otherwise.
|
CMDocument |
createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities)
Create the internal content model (for DOCTYPE subset) from the given DOM
document.
|
Collection<ContentModelProvider.Identifier> |
getIdentifiers(DOMDocument xmlDocument,
String namespaceURI)
Returns the identifiers list from the given document and namespace.
|
public CMDTDContentModelProvider(URIResolverExtensionManager resolverExtensionManager)
public boolean adaptFor(DOMDocument document, boolean internal)
ContentModelProvider
adaptFor
in interface ContentModelProvider
document
- the DOM document.internal
- true if it is an internal content model (ex : DOCCTYPE
subset) and false otherwise.public boolean adaptFor(String uri)
ContentModelProvider
adaptFor
in interface ContentModelProvider
public Collection<ContentModelProvider.Identifier> getIdentifiers(DOMDocument xmlDocument, String namespaceURI)
ContentModelProvider
getIdentifiers
in interface ContentModelProvider
xmlDocument
- the DOM document.namespaceURI
- the namespace.public CMDocument createCMDocument(String key, boolean resolveExternalEntities)
ContentModelProvider
createCMDocument
in interface ContentModelProvider
key
- the resource key.resolveExternalEntities
- true if external entities can be resolved and
false otherwise.public CMDocument createInternalCMDocument(DOMDocument xmlDocument, boolean resolveExternalEntities)
ContentModelProvider
createInternalCMDocument
in interface ContentModelProvider
xmlDocument
- the DOM document.resolveExternalEntities
- true if external entities can be resolved and
false otherwise.Copyright © 2022. All rights reserved.