DOMImplementation interface provides a number of methods
for performing operations that are independent of any particular instance
of the document object model.
See also the Document Object Model (DOM) Level 3 Core Specification.
| Modifier and Type | Method and Description |
|---|---|
| public Document | Returns: A newDocument object with its document element.
If the NamespaceURI, qualifiedName, and
doctype are null, the returned
Document is empty with no document element.The namespace URI of the document element to
create or namespaceURI, String null.The qualified name of the document element to be
created or qualifiedName, DocumentType null.The type of document to be created or doctype)null.
When doctype is not null, its
Node.ownerDocument attribute is set to the document
being created.Creates a DOM Document object of the specified type with its document element. |
| public DocumentType | Returns: A newDocumentType node with
Node.ownerDocument set to null.The qualified name of the document type to be
created. qualifiedName, String The external subset public identifier. publicId, String The external subset system identifier. systemId)Creates an empty |
| public Object | Returns: Returns an object which implements the specialized APIs of the specified feature and version, if any, ornull if
there is no object which implements interfaces associated with that
feature. If the DOMObject returned by this method
implements the DOMImplementation interface, it must
delegate to the primary core DOMImplementation and not
return results inconsistent with the primary core
DOMImplementation such as hasFeature,
getFeature, etc.The name of the feature requested. Note that any plus
sign "+" prepended to the name of the feature will be ignored since
it is not significant in the context of this method. feature, String This is the version number of the feature to test. version)This method returns a specialized object which implements the specialized APIs of the specified feature and version, as specified in DOM Features. |
| public boolean | Returns: true if the feature is implemented in the
specified version, false otherwise.The name of the feature to test. feature, String This is the version number of the feature to test. version)Test if the DOM implementation implements a specific feature and version, as specified in DOM Features. |
| createDocument | back to summary |
|---|---|
| public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException Creates a DOM Document object of the specified type with its document
element.
| |
| createDocumentType | back to summary |
|---|---|
| public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException Creates an empty
| |
| getFeature | back to summary |
|---|---|
| public Object getFeature(String feature, String version) This method returns a specialized object which implements the
specialized APIs of the specified feature and version, as specified
in DOM Features. The specialized object may also be obtained by using
binding-specific casting methods but is not necessarily expected to,
as discussed in . This method also allow the implementation to
provide specialized objects which do not support the
| |
| hasFeature | back to summary |
|---|---|
| public boolean hasFeature(String feature, String version) Test if the DOM implementation implements a specific feature and version, as specified in DOM Features. | |