class DOMImplementationImpl extends Object implements DOMImplementation
| Constructor and Description |
|---|
DOMImplementationImpl() |
| Modifier and Type | Method and Description |
|---|---|
Document |
createDocument(String namespaceURI,
String qualifiedName,
DocumentType doctype)
Creates an XML
Document object of the specified type with
its document element. |
DocumentType |
createDocumentType(String qualifiedName,
String publicId,
String systemId)
Creates an empty
DocumentType node. |
Object |
getFeature(String feature,
String version)
Return the value of a specific feature.
|
boolean |
hasFeature(String feature,
String version)
Test if the DOM implementation implements a specific feature.
|
public boolean hasFeature(String feature, String version)
hasFeature in interface DOMImplementationfeature - The name of the feature to test (case-insensitive).version - This is the version number of the feature to test.true if the feature is implemented in the
specified version, false otherwise.public Object getFeature(String feature, String version)
getFeature in interface DOMImplementationfeature - The name of the feature to test (case-insensitive).version - This is the version number of the feature to test.public DocumentType createDocumentType(String qualifiedName, String publicId, String systemId) throws DOMException
DocumentType node.createDocumentType in interface DOMImplementationqualifiedName - The qualified name of the document type to be
created.publicId - The external subset public identifier.systemId - The external subset system identifier.DocumentType node with
Node.ownerDocument set to null .DOMException - INVALID_CHARACTER_ERR: Raised if the specified qualified name
contains an illegal character.
qualifiedName is
malformed.public Document createDocument(String namespaceURI, String qualifiedName, DocumentType doctype) throws DOMException
Document object of the specified type with
its document element.createDocument in interface DOMImplementationnamespaceURI - The namespace URI of the document element to
create.qualifiedName - The qualified name of the document element to be
created.doctype - The type of document to be created or null.Document object.DOMException