public class CMXMLModelContentModelProvider extends Object implements ContentModelProvider
ContentModelProvider.Identifier| Constructor and Description |
|---|
CMXMLModelContentModelProvider(ContentModelManager modelManager) |
| 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 uri,
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 CMXMLModelContentModelProvider(ContentModelManager modelManager)
public boolean adaptFor(DOMDocument document, boolean internal)
ContentModelProvideradaptFor in interface ContentModelProviderdocument - the DOM document.internal - true if it is an internal content model (ex : DOCCTYPE
subset) and false otherwise.public boolean adaptFor(String uri)
ContentModelProvideradaptFor in interface ContentModelProviderpublic Collection<ContentModelProvider.Identifier> getIdentifiers(DOMDocument xmlDocument, String namespaceURI)
ContentModelProvidergetIdentifiers in interface ContentModelProviderxmlDocument - the DOM document.namespaceURI - the namespace.public CMDocument createCMDocument(String uri, boolean resolveExternalEntities)
ContentModelProvidercreateCMDocument in interface ContentModelProvideruri - the resource key.resolveExternalEntities - true if external entities can be resolved and
false otherwise.public CMDocument createInternalCMDocument(DOMDocument xmlDocument, boolean resolveExternalEntities)
ContentModelProvidercreateInternalCMDocument in interface ContentModelProviderxmlDocument - the DOM document.resolveExternalEntities - true if external entities can be resolved and
false otherwise.Copyright © 2024. All rights reserved.