FileDocCategorySizeDatePackage
HTMLDOMImplementationImpl.javaAPI DocJava SE 5 API4867Fri Aug 26 14:55:26 BST 2005com.sun.org.apache.html.internal.dom

HTMLDOMImplementationImpl

public class HTMLDOMImplementationImpl extends DOMImplementationImpl implements 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 {@link #getDOMImplementation}.
version
$Revision: 1.4 $ $Date: 2003/05/08 20:13:09 $
author
Assaf Arkin
see
org.w3c.dom.DOMImplementation

Fields Summary
private static HTMLDOMImplementation
_instance
Holds a reference to the single instance of the DOM implementation. Only one instance is required since this class is multiple entry.
Constructors 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 {@link #getDOMImplementation}.



                                 
     
    
    
Methods Summary
public final org.w3c.dom.html.HTMLDocumentcreateHTMLDocument(java.lang.String title)
Create a new HTML document of the specified TITLE text.

param
title The document title text
return
New HTML document

	HTMLDocument doc;

	if ( title == null )
	    throw new NullPointerException( "HTM014 Argument 'title' is null." );
	doc = new HTMLDocumentImpl();
	doc.setTitle( title );
	return doc;
    
public static org.w3c.dom.html.HTMLDOMImplementationgetHTMLDOMImplementation()
Returns an instance of a {@link HTMLDOMImplementation} that can be used to perform operations that are not specific to a particular document instance, e.g. to create a new document.

return
Reference to a valid DOM implementation

	return _instance;