public class DOMImpl extends Object implements DOMImplementation
getDOMImplementation()
.DOMImplementation
Modifier | Constructor and Description |
---|---|
protected |
DOMImpl()
Private constructor assures that an object of this class cannot
be created.
|
Modifier and Type | Method and Description |
---|---|
Document |
createDocument(String namespaceURI,
String qualifiedName,
DocumentType docType)
Create a new document of the specified type with its document element.
|
DocumentType |
createDocumentType(String qualifiedName,
String publicId,
String systemId)
Creates an empty document type.
|
DocumentType |
createDocumentType(String qualifiedName,
String publicId,
String systemId,
String internalSubset) |
static DOMImplementation |
getDOMImplementation()
Returns an instance of a
DOMImplementation that can be used to
perform operations that are not specific to a particular document
instance, e.g. |
Object |
getFeature(String feature,
String version) |
boolean |
hasFeature(String feature,
String version)
Return true if certain feature for specific DOM version supported by
this implementation.
|
protected DOMImpl()
getDOMImplementation()
.public final boolean hasFeature(String feature, String version)
hasFeature
in interface DOMImplementation
feature
- Name of feature to checkversion
- Optional version numberpublic final DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
createDocumentType
in interface DOMImplementation
qualifiedName
- The name of the document type to be createdpublicId
- The document type public identifiersystemId
- The document type system identifierpublic DocumentType createDocumentType(String qualifiedName, String publicId, String systemId, String internalSubset)
public final Document createDocument(String namespaceURI, String qualifiedName, DocumentType docType) throws DOMException
createDocument
in interface DOMImplementation
namespaceURI
- The namespace URI of the document, or nullqualifiedName
- The qualified name of the document elementdocType
- The type of the document, or nullDOMException
- The document type is already used, or the qualified
name is invalidpublic static DOMImplementation getDOMImplementation()
DOMImplementation
that can be used to
perform operations that are not specific to a particular document
instance, e.g. to create a new document.public Object getFeature(String feature, String version)
getFeature
in interface DOMImplementation
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.