Top Description Fields Constructors Methods
org.apache.xerces.dom

public Class DOMImplementationImpl

extends CoreDOMImplementationImpl
implements DOMImplementation
Class Inheritance
All Implemented Interfaces
org.w3c.dom.DOMImplementation
Known Direct Subclasses
org.apache.xerces.dom.PSVIDOMImplementationImpl, org.apache.html.dom.HTMLDOMImplementationImpl, org.apache.wml.dom.WMLDOMImplementationImpl, org.apache.xerces.dom.ASDOMImplementationImpl, org.apache.xerces.dom.DeferredDOMImplementationImpl
Imports
org.w3c.dom.DOMImplementation, .DocumentType

The DOMImplementation class is description of a particular implementation of the Document Object Model. As such its data is static, shared by all instances of this implementation.

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.

Since
PR-DOM-Level-1-19980818.
Version
$Id: DOMImplementationImpl.java 809736 2009-08-31 20:43:19Z mrglavas $

Field Summary

Modifier and TypeField and Description
pack-priv static final DOMImplementationImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected CoreDocumentImpl
public static DOMImplementation
getDOMImplementation()

Hides org.apache.xerces.dom.CoreDOMImplementationImpl.getDOMImplementation.

NON-DOM: Obtain and return the single shared object
public boolean

Returns:

true iff this implementation is compatable with the specified feature and version.
hasFeature
(String
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.apache.xerces.dom.CoreDOMImplementationImpl.hasFeature.

Implements org.w3c.dom.DOMImplementation.hasFeature.

Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.
Inherited from org.apache.xerces.dom.CoreDOMImplementationImpl:
assignDocTypeNumberassignDocumentNumbercheckQNamecreateDocumentcreateDocumentTypecreateLSInputcreateLSOutputcreateLSParsercreateLSSerializergetDTDLoadergetFeaturegetValidatorreleaseDTDLoaderreleaseValidator

Field Detail

singletonback to summary
pack-priv static final DOMImplementationImpl singleton

Hides org.apache.xerces.dom.CoreDOMImplementationImpl.singleton.

Dom implementation singleton.

Constructor Detail

DOMImplementationImplback to summary
public DOMImplementationImpl()

Method Detail

createDocumentback to summary
protected CoreDocumentImpl createDocument(DocumentType doctype)

Overrides org.apache.xerces.dom.CoreDOMImplementationImpl.createDocument.

getDOMImplementationback to summary
public static DOMImplementation getDOMImplementation()

Hides org.apache.xerces.dom.CoreDOMImplementationImpl.getDOMImplementation.

NON-DOM: Obtain and return the single shared object

hasFeatureback to summary
public boolean hasFeature(String feature, String version)

Overrides org.apache.xerces.dom.CoreDOMImplementationImpl.hasFeature.

Implements org.w3c.dom.DOMImplementation.hasFeature.

Test if the DOM implementation supports a specific "feature" -- currently meaning language and level thereof.

Parameters
feature:String

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.

version: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"

Returns:boolean

true iff this implementation is compatable with the specified feature and version.