The DOM API requires that it be a real object rather than static methods. However, there's nothing that says it can't be a singleton, so that's how I've implemented it.
| Modifier and Type | Field and Description |
|---|---|
| pack-priv static DOMImplementationImpl | singleton
Hides com. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Document | Returns: Document A new Document object.The namespace URI of the document
element to create, or null. namespaceURI, String The qualified name of the document
element to create. qualifiedName, DocumentType The type of document to be created or null. doctype)When doctype is not null, its Node.ownerDocument attribute is set to the document being created. Overrides com. Implements org. Introduced in DOM Level 2. |
| public static DOMImplementation | getDOMImplementation()
Hides com. NON-DOM: Obtain and return the single shared object |
| public boolean | Returns: true iff this implementation is compatable with the specified feature and version.The package name of the feature to test.
In Level 1, supported values are "HTML" and "XML" (case-insensitive).
At this writing, com.sun.org.apache.xerces.internal.dom supports only XML. feature, String The version number of the feature being tested.
This is interpreted as "Version of the DOM API supported for the
specified Feature", and in Level 1 should be "1.0" version)Overrides com. Implements org. Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof. |
| singleton | back to summary |
|---|---|
| pack-priv static DOMImplementationImpl singleton Hides com. Dom implementation singleton. | |
| DOMImplementationImpl | back to summary |
|---|---|
| public DOMImplementationImpl() | |
| createDocument | back to summary |
|---|---|
| public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException Overrides com. Implements org. Introduced in DOM Level 2. Creates an XML Document object of the specified type with its document element.
| |
| getDOMImplementation | back to summary |
|---|---|
| public static DOMImplementation getDOMImplementation() Hides com. NON-DOM: Obtain and return the single shared object | |
| hasFeature | back to summary |
|---|---|
| public boolean hasFeature(String feature, String version) Overrides com. Implements org. Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
| |