public interface ContentModelProvider
Modifier and Type | Interface and Description |
---|---|
static class |
ContentModelProvider.Identifier |
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.
|
boolean adaptFor(DOMDocument document, boolean internal)
document
- the DOM document.internal
- true if it is an internal content model (ex : DOCCTYPE
subset) and false otherwise.boolean adaptFor(String uri)
Collection<ContentModelProvider.Identifier> getIdentifiers(DOMDocument xmlDocument, String namespaceURI)
xmlDocument
- the DOM document.namespaceURI
- the namespace.CMDocument createCMDocument(String key, boolean resolveExternalEntities)
key
- the resource key.resolveExternalEntities
- true if external entities can be resolved and
false otherwise.CMDocument createInternalCMDocument(DOMDocument xmlDocument, boolean resolveExternalEntities)
xmlDocument
- the DOM document.resolveExternalEntities
- true if external entities can be resolved and
false otherwise.Copyright © 2022. All rights reserved.