Multi-line svn commit, see body.
[shibboleth/cpp-xmltooling.git] / xmltooling / impl / UnknownElement.h
index ded9183..ce23b31 100644 (file)
@@ -15,7 +15,7 @@
  */\r
 \r
 /**\r
- * @file UnknownElement.h\r
+ * @file xmltooling/impl/UnknownElement.h\r
  * \r
  * Basic implementation suitable for use as default for unrecognized content\r
  */\r
@@ -23,7 +23,7 @@
 #ifndef __xmltooling_unkelement_h__\r
 #define __xmltooling_unkelement_h__\r
 \r
-#include <xmltooling/AbstractChildlessElement.h>\r
+#include <xmltooling/AbstractSimpleElement.h>\r
 #include <xmltooling/exceptions.h>\r
 #include <xmltooling/XMLObjectBuilder.h>\r
 #include <xmltooling/io/AbstractXMLObjectMarshaller.h>\r
@@ -39,7 +39,7 @@
 namespace xmltooling {\r
 \r
     /// @cond off\r
-    class XMLTOOL_DLLLOCAL UnknownElementImpl : public AbstractChildlessElement, public AbstractDOMCachingXMLObject\r
+    class XMLTOOL_DLLLOCAL UnknownElementImpl : public AbstractSimpleElement, public AbstractDOMCachingXMLObject\r
     {\r
     public:\r
         UnknownElementImpl(const XMLCh* namespaceURI=NULL, const XMLCh* elementLocalName=NULL, const XMLCh* namespacePrefix=NULL)\r
@@ -49,6 +49,14 @@ namespace xmltooling {
 \r
         XMLObject* clone() const;\r
 \r
+        const XMLCh* getTextContent(unsigned int position=0) const {\r
+            throw XMLObjectException("Direct access to content is not permitted.");\r
+        }\r
+\r
+        void setTextContent(const XMLCh*, unsigned int position=0) {\r
+            throw XMLObjectException("Direct access to content is not permitted.");\r
+        }\r
+\r
         DOMElement* marshall(\r
             DOMDocument* document=NULL\r
 #ifndef XMLTOOLING_NO_XMLSEC\r