Package org.htmlunit.cyberneko.html.dom
Class HTMLDOMImplementationImpl
java.lang.Object
org.htmlunit.cyberneko.xerces.dom.CoreDOMImplementationImpl
org.htmlunit.cyberneko.xerces.dom.DOMImplementationImpl
org.htmlunit.cyberneko.html.dom.HTMLDOMImplementationImpl
- All Implemented Interfaces:
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.w3c.dom.html.HTMLDOMImplementation
Holds a reference to the single instance of the DOM implementation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Private constructor assures that an object of this class cannot be created. -
Method Summary
Modifier and TypeMethodDescriptionorg.w3c.dom.html.HTMLDocument
createHTMLDocument
(String title) Create a new HTML document of the specified TITLE text.static org.w3c.dom.html.HTMLDOMImplementation
Returns an instance of aHTMLDOMImplementation
that can be used to perform operations that are not specific to a particular document instance, e.g.Methods inherited from class org.htmlunit.cyberneko.xerces.dom.DOMImplementationImpl
createDocument, getDOMImplementation, hasFeature
Methods inherited from class org.htmlunit.cyberneko.xerces.dom.CoreDOMImplementationImpl
assignDocTypeNumber, assignDocumentNumber, createDocument, createDocumentType, getFeature
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.w3c.dom.DOMImplementation
createDocument, createDocumentType, getFeature, hasFeature
-
Field Details
-
INSTANCE
private static final org.w3c.dom.html.HTMLDOMImplementation INSTANCEHolds a reference to the single instance of the DOM implementation. Only one instance is required since this class is multiple entry.
-
-
Constructor Details
-
HTMLDOMImplementationImpl
private HTMLDOMImplementationImpl()Private constructor assures that an object of this class cannot be created. The only way to obtain an object is by callingDOMImplementationImpl.getDOMImplementation()
.
-
-
Method Details
-
createHTMLDocument
Create a new HTML document of the specified TITLE text.- Specified by:
createHTMLDocument
in interfaceorg.w3c.dom.html.HTMLDOMImplementation
- Parameters:
title
- The document title text- Returns:
- New HTML document
- Throws:
DOMException
-
getHTMLDOMImplementation
public static org.w3c.dom.html.HTMLDOMImplementation getHTMLDOMImplementation()Returns an instance of aHTMLDOMImplementation
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
-