Refactored simple content and child-handling into mixin classes.
[shibboleth/cpp-xmltooling.git] / xmltooling / ElementProxy.h
index 53b3d48..b62d7ab 100644 (file)
@@ -23,6 +23,7 @@
 #if !defined(__xmltooling_eleproxy_h__)\r
 #define __xmltooling_eleproxy_h__\r
 \r
+#include <xmltooling/SimpleElement.h>\r
 #include <xmltooling/XMLObject.h>\r
 #include <xmltooling/util/XMLObjectChildrenList.h>\r
 \r
@@ -33,27 +34,13 @@ namespace xmltooling {
     /**\r
      * An XMLObject with an open content model.\r
      */\r
-    class XMLTOOL_API ElementProxy : public virtual XMLObject\r
+    class XMLTOOL_API ElementProxy : public virtual SimpleElement\r
     {\r
     public:\r
         ElementProxy() {}\r
         virtual ~ElementProxy() {}\r
         \r
         /**\r
-         * Gets the text content of the object\r
-         * \r
-         * @return the text content, or NULL\r
-         */\r
-        virtual const XMLCh* getTextContent() const=0;\r
-        \r
-        /**\r
-         * Sets (or clears) the text content of the object \r
-         * \r
-         * @param value         value to set, or NULL to clear\r
-         */\r
-        virtual void setTextContent(const XMLCh* value)=0;\r
-\r
-        /**\r
          * Gets a mutable list of child objects\r
          * \r
          * @return  mutable list of child objects\r