You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/07/15 21:29:53 UTC

cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMDocumentImpl.cpp DOMDocumentImpl.hpp

tng         2002/07/15 12:29:53

  Modified:    c/src/xercesc/dom/impl DOMDocumentImpl.cpp
                        DOMDocumentImpl.hpp
  Log:
  DOM L3:
  1. declare dummy DOMDocument::get/setErrorHandler, adoptNode, normalizeDocument, canSetNormalizationFeature, get/setNormalizationFeature,
  2. Support get/setStrictErrorChecking
  
  Revision  Changes    Path
  1.11      +47 -2     xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp
  
  Index: DOMDocumentImpl.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- DOMDocumentImpl.cpp	4 Jul 2002 15:27:56 -0000	1.10
  +++ DOMDocumentImpl.cpp	15 Jul 2002 19:29:53 -0000	1.11
  @@ -666,6 +666,15 @@
              void*            DOMDocumentImpl::setUserData(const XMLCh* key, void* data, DOMUserDataHandler* handler)
                                                                                        {return fNode.setUserData(key, data, handler); };
              void*            DOMDocumentImpl::getUserData(const XMLCh* key) const     {return fNode.getUserData(key); };
  +           const XMLCh*     DOMDocumentImpl::getBaseURI() const                      {return fNode.getBaseURI(); };
  +           short            DOMDocumentImpl::compareTreePosition(DOMNode* other)     {return fNode.compareTreePosition(other); };
  +           const XMLCh*     DOMDocumentImpl::getTextContent() const                  {return fNode.getTextContent(); };
  +           void             DOMDocumentImpl::setTextContent(const XMLCh* textContent){fNode.setTextContent(textContent); };
  +           const XMLCh*     DOMDocumentImpl::lookupNamespacePrefix(const XMLCh* namespaceURI, bool useDefault) {return fNode.lookupNamespacePrefix(namespaceURI, useDefault); };
  +           bool             DOMDocumentImpl::isDefaultNamespace(const XMLCh* namespaceURI) {return fNode.isDefaultNamespace(namespaceURI); };
  +           const XMLCh*     DOMDocumentImpl::lookupNamespaceURI(const XMLCh* prefix) {return fNode.lookupNamespaceURI(prefix); };
  +           DOMNode*         DOMDocumentImpl::getInterface(const XMLCh* feature)      {return fNode.getInterface(feature); };
  +
   
   
   
  @@ -856,7 +865,43 @@
       fDocumentURI = cloneString(documentURI);
   }
   
  -//Introduced in DOM Level 2
  +bool DOMDocumentImpl::getStrictErrorChecking() const {
  +    return getErrorChecking();
  +}
  +
  +void DOMDocumentImpl::setStrictErrorChecking(bool strictErrorChecking) {
  +    setErrorChecking(strictErrorChecking);
  +}
  +
  +DOMErrorHandler* DOMDocumentImpl::getErrorHandler() const {
  +    return 0;
  +}
  +
  +void DOMDocumentImpl::setErrorHandler(DOMErrorHandler* const handler) {
  +    throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
  +}
  +
  +DOMNode* DOMDocumentImpl::adoptNode(DOMNode* source) {
  +    throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
  +    return 0;
  +}
  +
  +void DOMDocumentImpl::normalizeDocument() {
  +    throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
  +}
  +
  +bool DOMDocumentImpl::canSetNormalizationFeature(const XMLCh* const name, bool state) const {
  +    return false;
  +}
  +
  +void DOMDocumentImpl::setNormalizationFeature(const XMLCh* const name, bool state) {
  +    throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
  +}
  +
  +bool DOMDocumentImpl::getNormalizationFeature(const XMLCh* const name) const {
  +    throw DOMException(DOMException::NOT_FOUND_ERR, 0);
  +    return false;
  +}
   
   DOMNode *DOMDocumentImpl::importNode(DOMNode *source, bool deep, bool cloningDoc)
   {
  
  
  
  1.7       +12 -2     xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.hpp
  
  Index: DOMDocumentImpl.hpp
  ===================================================================
  RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMDocumentImpl.hpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DOMDocumentImpl.hpp	4 Jul 2002 15:27:56 -0000	1.6
  +++ DOMDocumentImpl.hpp	15 Jul 2002 19:29:53 -0000	1.7
  @@ -278,7 +278,7 @@
       /**
        * Returns true if the DOM implementation performs error checking.
        */
  -    inline bool getErrorChecking() {
  +    inline bool getErrorChecking() const {
           return errorChecking;
       }
   
  @@ -307,6 +307,16 @@
       virtual void                 setVersion(const XMLCh* version);
       virtual const XMLCh*         getDocumentURI() const;
       virtual void                 setDocumentURI(const XMLCh* documentURI);
  +    virtual bool                 getStrictErrorChecking() const;
  +    virtual void                 setStrictErrorChecking(bool strictErrorChecking);
  +    virtual DOMErrorHandler*     getErrorHandler() const;
  +    virtual void                 setErrorHandler(DOMErrorHandler* const handler);
  +    virtual DOMNode*             adoptNode(DOMNode* source);
  +    virtual void                 normalizeDocument();
  +    virtual bool                 canSetNormalizationFeature(const XMLCh* const name, bool state) const;
  +    virtual void                 setNormalizationFeature(const XMLCh* const name, bool state);
  +    virtual bool                 getNormalizationFeature(const XMLCh* const name) const;
  +
   
       // helper functions to prevent storing userdata pointers on every node.
       void*                        setUserData(DOMNodeImpl* n,
  
  
  

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