Merged marshalling/unmarshalling methods into core interface.
[shibboleth/cpp-xmltooling.git] / xmltooling / DOMCachingXMLObject.h
index 84f33e2..895527d 100644 (file)
@@ -52,7 +52,7 @@ namespace xmltooling {
          * @param dom       DOM representation of this XMLObject\r
          * @param bindDocument  true if the object should take ownership of the associated Document\r
          */\r
-        virtual void setDOM(DOMElement* dom, bool bindDocument=false)=0;\r
+        virtual void setDOM(DOMElement* dom, bool bindDocument=false) const=0;\r
     \r
         /**\r
          * Assigns ownership of a DOM document to the XMLObject.\r
@@ -60,26 +60,26 @@ namespace xmltooling {
          * \r
          * @param doc DOM document bound to this object \r
          */\r
-        virtual void setDocument(DOMDocument* doc)=0;\r
+        virtual void setDocument(DOMDocument* doc) const=0;\r
 \r
         /**\r
          * Releases the DOM representation of this XMLObject, if there is one.\r
          */\r
-        virtual void releaseDOM()=0;\r
+        virtual void releaseDOM() const=0;\r
         \r
         /**\r
          * Releases the DOM representation of this XMLObject's parent.\r
          * \r
          * @param propagateRelease true if all ancestors of this element should release their DOM\r
          */\r
-        virtual void releaseParentDOM(bool propagateRelease=true)=0;\r
+        virtual void releaseParentDOM(bool propagateRelease=true) const=0;\r
         \r
         /**\r
          * Releases the DOM representation of this XMLObject's children.\r
          * \r
          * @param propagateRelease true if all descendants of this element should release their DOM\r
          */\r
-        virtual void releaseChildrenDOM(bool propagateRelease=true)=0;\r
+        virtual void releaseChildrenDOM(bool propagateRelease=true) const=0;\r
     };\r
     \r
 };\r