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 DOMImplementationImpl | singleton
Hides org. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected CoreDocumentImpl | |
| public static DOMImplementation | getDOMImplementation()
Hides org. |
| 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, org.apache.xerces.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 org. Implements org. |
| singleton | back to summary |
|---|---|
| pack-priv static final DOMImplementationImpl singleton Hides org. Dom implementation singleton. | |
| DOMImplementationImpl | back to summary |
|---|---|
| public DOMImplementationImpl() | |
| createDocument | back to summary |
|---|---|
| protected CoreDocumentImpl createDocument(DocumentType doctype) Overrides org. | |
| getDOMImplementation | back to summary |
|---|---|
| public static DOMImplementation getDOMImplementation() Hides org. NON-DOM: Obtain and return the single shared object | |
| hasFeature | back to summary |
|---|---|
| public boolean hasFeature(String feature, String version) Overrides org. Implements org. Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
| |