Class CMXMLModelContentModelProvider

    • Constructor Detail

      • CMXMLModelContentModelProvider

        public CMXMLModelContentModelProvider​(ContentModelManager modelManager)
    • Method Detail

      • adaptFor

        public boolean adaptFor​(DOMDocument document,
                                boolean internal)
        Description copied from interface: ContentModelProvider
        Returns the content model provider by using standard association (xsi:schemaLocation, xsi:noNamespaceSchemaLocation, doctype) and null otherwise.
        Specified by:
        adaptFor in interface ContentModelProvider
        Parameters:
        document - the DOM document.
        internal - true if it is an internal content model (ex : DOCCTYPE subset) and false otherwise.
        Returns:
        the content model provider by using standard association (xsi:schemaLocation, xsi:noNamespaceSchemaLocation, doctype) and null otherwise.
      • adaptFor

        public boolean adaptFor​(String uri)
        Description copied from interface: ContentModelProvider
        Returns true if the given resource uri can be adapted for this content model and false otherwise. o@param uri the resource Uri.
        Specified by:
        adaptFor in interface ContentModelProvider
        Returns:
        true if the given resource uri can be adapted for this content model and false otherwise.
      • createCMDocument

        public CMDocument createCMDocument​(String uri,
                                           boolean resolveExternalEntities)
        Description copied from interface: ContentModelProvider
        Create content model document (XSD, DTD, etc) from the given resource key and null otherwise.
        Specified by:
        createCMDocument in interface ContentModelProvider
        Parameters:
        uri - the resource key.
        resolveExternalEntities - true if external entities can be resolved and false otherwise.
        Returns:
        the content model document (XSD, DTD, etc) from the given resource key and null otherwise.
      • createInternalCMDocument

        public CMDocument createInternalCMDocument​(DOMDocument xmlDocument,
                                                   boolean resolveExternalEntities)
        Description copied from interface: ContentModelProvider
        Create the internal content model (for DOCTYPE subset) from the given DOM document.
        Specified by:
        createInternalCMDocument in interface ContentModelProvider
        Parameters:
        xmlDocument - the DOM document.
        resolveExternalEntities - true if external entities can be resolved and false otherwise.
        Returns:
        the internal content model (for DOCTYPE subset) from the given DOM document.