Class HTMLDOMImplementationImpl

  • All Implemented Interfaces:
    org.w3c.dom.DOMImplementation, org.w3c.dom.html.HTMLDOMImplementation

    public final class HTMLDOMImplementationImpl
    extends DOMImplementationImpl
    implements org.w3c.dom.html.HTMLDOMImplementation
    Provides number of methods for performing operations that are independent of any particular instance of the document object model. This class is unconstructable, the only way to obtain an instance of a DOM implementation is by calling the static method DOMImplementationImpl.getDOMImplementation().

    See Also:
    DOMImplementation
    • Field Detail

      • INSTANCE

        private static final org.w3c.dom.html.HTMLDOMImplementation INSTANCE
        Holds a reference to the single instance of the DOM implementation. Only one instance is required since this class is multiple entry.
    • Constructor Detail

      • HTMLDOMImplementationImpl

        private HTMLDOMImplementationImpl()
        Private constructor assures that an object of this class cannot be created. The only way to obtain an object is by calling DOMImplementationImpl.getDOMImplementation().
    • Method Detail

      • createHTMLDocument

        public org.w3c.dom.html.HTMLDocument createHTMLDocument​(java.lang.String title)
                                                         throws org.w3c.dom.DOMException
        Create a new HTML document of the specified TITLE text.
        Specified by:
        createHTMLDocument in interface org.w3c.dom.html.HTMLDOMImplementation
        Parameters:
        title - The document title text
        Returns:
        New HTML document
        Throws:
        org.w3c.dom.DOMException
      • getHTMLDOMImplementation

        public static org.w3c.dom.html.HTMLDOMImplementation getHTMLDOMImplementation()
        Returns an instance of a HTMLDOMImplementation that can be used to perform operations that are not specific to a particular document instance, e.g. to create a new document.
        Returns:
        Reference to a valid DOM implementation