adapforms.runtime.state.dom
Class DOMImplementation

java.lang.Object
  extended by adapforms.runtime.state.dom.DOMImplementation
All Implemented Interfaces:
org.w3c.dom.DOMImplementation

public class DOMImplementation
extends java.lang.Object
implements org.w3c.dom.DOMImplementation

DOM implementation skeleton, that basically reports that no features are available and denies the creation of new documents and document types.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Constructor Summary
DOMImplementation()
           
 
Method Summary
 org.w3c.dom.Document createDocument(java.lang.String namespaceURI, java.lang.String qualifiedName, org.w3c.dom.DocumentType doctype)
           
 org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName, java.lang.String publicId, java.lang.String systemId)
           
 java.lang.Object getFeature(java.lang.String feature, java.lang.String version)
           
static DOMImplementation getInstance()
          Get the singleton instance.
 boolean hasFeature(java.lang.String feature, java.lang.String version)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DOMImplementation

public DOMImplementation()
Method Detail

getInstance

public static DOMImplementation getInstance()
Get the singleton instance.


createDocument

public org.w3c.dom.Document createDocument(java.lang.String namespaceURI,
                                           java.lang.String qualifiedName,
                                           org.w3c.dom.DocumentType doctype)
                                    throws org.w3c.dom.DOMException
Specified by:
createDocument in interface org.w3c.dom.DOMImplementation
Throws:
org.w3c.dom.DOMException

createDocumentType

public org.w3c.dom.DocumentType createDocumentType(java.lang.String qualifiedName,
                                                   java.lang.String publicId,
                                                   java.lang.String systemId)
                                            throws org.w3c.dom.DOMException
Specified by:
createDocumentType in interface org.w3c.dom.DOMImplementation
Throws:
org.w3c.dom.DOMException

getFeature

public java.lang.Object getFeature(java.lang.String feature,
                                   java.lang.String version)
Specified by:
getFeature in interface org.w3c.dom.DOMImplementation

hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)
Specified by:
hasFeature in interface org.w3c.dom.DOMImplementation