Top Description Fields Constructors Methods
org.apache.html.dom

public Class HTMLDOMImplementationImpl

extends DOMImplementationImpl
implements HTMLDOMImplementation
Class Inheritance
All Implemented Interfaces
org.w3c.dom.html.HTMLDOMImplementation, org.w3c.dom.DOMImplementation
Imports
org.apache.xerces.dom.DOMImplementationImpl, org.w3c.dom.DOMException, org.w3c.dom.html.HTMLDOMImplementation, .HTMLDocument

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 getDOMImplementation.
Author
Assaf Arkin
Version
$Revision: 645327 $ $Date: 2008-04-07 04:47:54 +0530 (Mon, 07 Apr 2008) $
See Also
org.w3c.dom.DOMImplementation

Field Summary

Modifier and TypeField and Description
private static final HTMLDOMImplementation
_instance

Holds a reference to the single instance of the DOM implementation.

Constructor Summary

AccessConstructor and Description
private
HTMLDOMImplementationImpl()

Private constructor assures that an object of this class cannot be created.

Method Summary

Modifier and TypeMethod and Description
public final HTMLDocument

Returns:

New HTML document
createHTMLDocument
(String
The document title text
title
)

Implements org.w3c.dom.html.HTMLDOMImplementation.createHTMLDocument.

Create a new HTML document of the specified TITLE text.
public static HTMLDOMImplementation

Returns:

Reference to a valid DOM implementation
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.

Inherited from org.apache.xerces.dom.DOMImplementationImpl:
createDocumentgetDOMImplementationhasFeature

Field Detail

_instanceback to summary
private static final 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

HTMLDOMImplementationImplback to summary
private HTMLDOMImplementationImpl()

Private constructor assures that an object of this class cannot be created. The only way to obtain an object is by calling getDOMImplementation.

Method Detail

createHTMLDocumentback to summary
public final HTMLDocument createHTMLDocument(String title) throws DOMException

Implements org.w3c.dom.html.HTMLDOMImplementation.createHTMLDocument.

Create a new HTML document of the specified TITLE text.

Parameters
title:String

The document title text

Returns:HTMLDocument

New HTML document

getHTMLDOMImplementationback to summary
public static 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:HTMLDOMImplementation

Reference to a valid DOM implementation