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 final PSVIDOMImplementationImpl | singleton
Hides com. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CoreDocumentImpl | |
| 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 final PSVIDOMImplementationImpl singleton Hides com. Dom implementation singleton. | |
| PSVIDOMImplementationImpl | back to summary |
|---|---|
| public PSVIDOMImplementationImpl() | |
| createDocument | back to summary |
|---|---|
| protected CoreDocumentImpl createDocument(DocumentType doctype) Overrides com. | |
| 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.
| |