You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by am...@apache.org on 2005/08/04 13:55:41 UTC

svn commit: r227348 - in /xerces/c/trunk/src/xercesc/dom: DOMImplementation.hpp impl/DOMImplementationImpl.cpp impl/DOMImplementationImpl.hpp

Author: amassari
Date: Thu Aug  4 04:55:02 2005
New Revision: 227348

URL: http://svn.apache.org/viewcvs?rev=227348&view=rev
Log:
DOM L3 Core: DOMImplementation

Modified:
    xerces/c/trunk/src/xercesc/dom/DOMImplementation.hpp
    xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.cpp
    xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.hpp

Modified: xerces/c/trunk/src/xercesc/dom/DOMImplementation.hpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/dom/DOMImplementation.hpp?rev=227348&r1=227347&r2=227348&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/DOMImplementation.hpp (original)
+++ xerces/c/trunk/src/xercesc/dom/DOMImplementation.hpp Thu Aug  4 04:55:02 2005
@@ -182,24 +182,21 @@
     /** @name Functions introduced in DOM Level 3 */
     //@{
     /**
-     * This method makes available a <code>DOMImplementation</code>'s
-     * specialized interface (see ).
-     *
-     * <p><b>"Experimental - subject to change"</b></p>
+     * This method returns a specialized object which implements the specialized APIs 
+     * of the specified feature and version, as specified in DOM Features.
+     * This method also allow the implementation to provide specialized objects which 
+     * do not support the <code>DOMImplementation</code> interface.
      *
      * @param feature The name of the feature requested (case-insensitive).
-     * @return Returns an alternate <code>DOMImplementation</code> which
-     *   implements the specialized APIs of the specified feature, if any,
-     *   or <code>null</code> if there is no alternate
-     *   <code>DOMImplementation</code> object which implements interfaces
-     *   associated with that feature. Any alternate
-     *   <code>DOMImplementation</code> returned by this method must
-     *   delegate to the primary core <code>DOMImplementation</code> and not
-     *   return results inconsistent with the primary
-     *   <code>DOMImplementation</code>
+     *        Note that any plus sign "+" prepended to the name of the feature will 
+     *        be ignored since it is not significant in the context of this method.
+     * @param version This is the version number of the feature to test.
+     * @return 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. 
      * @since DOM Level 3
      */
-    virtual DOMImplementation* getInterface(const XMLCh* feature) = 0;
+    virtual void* getFeature(const XMLCh* feature, const XMLCh* version) = 0;
 
     //@}
 

Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.cpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.cpp?rev=227348&r1=227347&r2=227348&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.cpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.cpp Thu Aug  4 04:55:02 2005
@@ -178,6 +178,10 @@
     if (!feature)
         return false;
 
+    // ignore the + modifier
+    if(*feature==chPlus)
+        feature++;
+
     bool anyVersion = (version == 0 || !*version);
     bool version1_0 = XMLString::equals(version, g1_0);
     bool version2_0 = XMLString::equals(version, g2_0);
@@ -230,9 +234,7 @@
 
 
 //Introduced in DOM Level 3
-DOMImplementation* DOMImplementationImpl::getInterface(const XMLCh*){
-    throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
-
+void* DOMImplementationImpl::getFeature(const XMLCh*, const XMLCh*){
     return 0;
 }
 

Modified: xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.hpp
URL: http://svn.apache.org/viewcvs/xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.hpp?rev=227348&r1=227347&r2=227348&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.hpp (original)
+++ xerces/c/trunk/src/xercesc/dom/impl/DOMImplementationImpl.hpp Thu Aug  4 04:55:02 2005
@@ -67,7 +67,7 @@
                                                MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);
 
     // DOM Level 3
-    virtual DOMImplementation*  getInterface(const XMLCh* feature);
+    virtual void* getFeature(const XMLCh* feature, const XMLCh* version);
 
     // Non-standard extension
     virtual DOMDocument*        createDocument(MemoryManager* const manager = XMLPlatformUtils::fgMemoryManager);



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org