org.apache.crimson.tree
Class DOMImplementationImpl

java.lang.Object
  extended byorg.apache.crimson.tree.DOMImplementationImpl
All Implemented Interfaces:
org.w3c.dom.DOMImplementation

public class DOMImplementationImpl
extends Object
implements org.w3c.dom.DOMImplementation

This class implements the DOM DOMImplementation interface.

Author:
Edwin Goei

Field Summary
private static DOMImplementationImpl singleton
          DOM implementation singleton.
 
Constructor Summary
DOMImplementationImpl()
           
 
Method Summary
 org.w3c.dom.Document createDocument(String namespaceURI, String qualifiedName, org.w3c.dom.DocumentType doctype)
          Creates an XML Document object of the specified type with its document element.
 org.w3c.dom.DocumentType createDocumentType(String qualifiedName, String publicId, String systemId)
          Creates an empty DocumentType node.
static org.w3c.dom.DOMImplementation getDOMImplementation()
          NON-DOM: Obtain and return the single shared object
 boolean hasFeature(String feature, String version)
          Test if the DOM implementation implements a specific feature.
(package private) static boolean hasFeature0(String feature, String version)
          Reports on features that this implementation supports.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

private static DOMImplementationImpl singleton
DOM implementation singleton.

Constructor Detail

DOMImplementationImpl

public DOMImplementationImpl()
Method Detail

getDOMImplementation

public static org.w3c.dom.DOMImplementation getDOMImplementation()
NON-DOM: Obtain and return the single shared object


hasFeature

public boolean hasFeature(String feature,
                          String version)
Test if the DOM implementation implements a specific feature.

Specified by:
hasFeature in interface org.w3c.dom.DOMImplementation

hasFeature0

static boolean hasFeature0(String feature,
                           String version)
Reports on features that this implementation supports. Allows code to be shared with NodeBase.supports().


createDocumentType

public org.w3c.dom.DocumentType createDocumentType(String qualifiedName,
                                                   String publicId,
                                                   String systemId)
Creates an empty DocumentType node.

Specified by:
createDocumentType in interface org.w3c.dom.DOMImplementation

createDocument

public org.w3c.dom.Document createDocument(String namespaceURI,
                                           String qualifiedName,
                                           org.w3c.dom.DocumentType doctype)
                                    throws org.w3c.dom.DOMException
Creates an XML Document object of the specified type with its document element.

Specified by:
createDocument in interface org.w3c.dom.DOMImplementation
Throws:
org.w3c.dom.DOMException