DOMImplementationImplpublic class DOMImplementationImpl extends Object implements DOMImplementationProvides a straightforward implementation of the corresponding W3C DOM
interface. The class is used internally only, thus only notable members that
are not in the original interface are documented (the W3C docs are quite
extensive). Hope that's ok.
Some of the fields may have package visibility, so other classes belonging to
the DOM implementation can easily access them while maintaining the DOM tree
structure. |
Fields Summary |
---|
private static DOMImplementationImpl | instance |
Constructors Summary |
---|
DOMImplementationImpl()
|
Methods Summary |
---|
public org.w3c.dom.Document | createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype)
return new DocumentImpl(this, namespaceURI, qualifiedName, doctype);
| public org.w3c.dom.DocumentType | createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
return new DocumentTypeImpl(this, qualifiedName, publicId, systemId);
| public static org.apache.harmony.xml.dom.DOMImplementationImpl | getInstance()Requests the singleton instance of the class. Creates it first, if
necessary.
if (instance == null) {
instance = new DOMImplementationImpl();
}
return instance;
| public boolean | hasFeature(java.lang.String feature, java.lang.String version)
// We claim to support DOM Core Level 1 & 2, nothing else.
if ("Core".equalsIgnoreCase(feature) || "XML".equalsIgnoreCase(feature)) {
if (version == null || "".equals(version) || "1.0".equals(version) || "2.0".equals(version)) {
return true;
}
}
return false;
|
|