org.apache.xml.dtm.ref
Class DTMNodeProxy.DTMNodeProxyImplementation

java.lang.Object
  extended by org.apache.xml.dtm.ref.DTMNodeProxy.DTMNodeProxyImplementation
All Implemented Interfaces:
org.w3c.dom.DOMImplementation
Enclosing class:
DTMNodeProxy

static class DTMNodeProxy.DTMNodeProxyImplementation
extends java.lang.Object
implements org.w3c.dom.DOMImplementation

Inner class to support getDOMImplementation.


Constructor Summary
DTMNodeProxy.DTMNodeProxyImplementation()
           
 
Method Summary
 org.w3c.dom.Document createDocument(java.lang.String namespaceURI, java.lang.String qualfiedName, 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)
          This method returns a specialized object which implements the specialized APIs of the specified feature and version.
 boolean hasFeature(java.lang.String feature, java.lang.String version)
          Ask whether we support a given DOM feature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTMNodeProxy.DTMNodeProxyImplementation

DTMNodeProxy.DTMNodeProxyImplementation()
Method Detail

createDocumentType

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

createDocument

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

hasFeature

public boolean hasFeature(java.lang.String feature,
                          java.lang.String version)
Ask whether we support a given DOM feature. In fact, we do not _fully_ support any DOM feature -- we're a read-only subset -- so arguably we should always return false. On the other hand, it may be more practically useful to return true and simply treat the whole DOM as read-only, failing on the methods we can't support. I'm not sure which would be more useful to the caller.

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

getFeature

public java.lang.Object getFeature(java.lang.String feature,
                                   java.lang.String version)
This method returns a specialized object which implements the specialized APIs of the specified feature and version. The specialized object may also be obtained by using binding-specific casting methods but is not necessarily expected to, as discussed in Mixed DOM implementations .

Specified by:
getFeature in interface org.w3c.dom.DOMImplementation
Parameters:
feature - The name of the feature requested (case-insensitive).
version - This is the version number of the feature to test. If the version is null or the empty string, supporting any version of the feature will cause the method to return an object that supports at least one version of the feature.
Returns:
Returns an object which implements the specialized APIs of the specified feature and version, if any, or null if there is no object which implements interfaces associated with that feature. If the DOMObject returned by this method implements the Node interface, it must delegate to the primary core Node and not return results inconsistent with the primary core Node such as attributes, childNodes, etc.
Since:
DOM Level 3