--- /dev/null
+/*\r
+ * Copyright 2001-2006 Internet2\r
+ * \r
+ * Licensed under the Apache License, Version 2.0 (the "License");\r
+ * you may not use this file except in compliance with the License.\r
+ * You may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * Unless required by applicable law or agreed to in writing, software\r
+ * distributed under the License is distributed on an "AS IS" BASIS,\r
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ * See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ */\r
+\r
+/**\r
+ * @file AbstractElementProxy.h\r
+ * \r
+ * An abstract implementation of a DOM-caching ElementProxy \r
+ */\r
+\r
+#if !defined(__xmltooling_abseleproxy_h__)\r
+#define __xmltooling_abseleproxy_h__\r
+\r
+#include <xmltooling/AbstractDOMCachingXMLObject.h>\r
+#include <xmltooling/ElementProxy.h>\r
+\r
+using namespace xercesc;\r
+\r
+#if defined (_MSC_VER)\r
+ #pragma warning( push )\r
+ #pragma warning( disable : 4250 4251 )\r
+#endif\r
+\r
+namespace xmltooling {\r
+\r
+ /**\r
+ * An abstract implementation of a DOM-caching ExtensibleXMLObject.\r
+ */\r
+ class XMLTOOL_API AbstractElementProxy : public virtual ElementProxy, public virtual AbstractDOMCachingXMLObject\r
+ {\r
+ public:\r
+ virtual ~AbstractElementProxy() {}\r
+ \r
+ /**\r
+ * @see ElementProxy::getTextContent()\r
+ */\r
+ virtual const XMLCh* getTextContent() const {\r
+ return m_value;\r
+ }\r
+ \r
+ /**\r
+ * @see ElementProxy::setTextContent()\r
+ */\r
+ virtual void setTextContent(const XMLCh* value);\r
+ \r
+\r
+ /**\r
+ * @see ElementProxy::getXMLObjects()\r
+ */\r
+ virtual ListOf(XMLObject) getXMLObjects();\r
+ \r
+ protected:\r
+ /**\r
+ * Constructor\r
+ * \r
+ * @param namespaceURI the namespace the element is in\r
+ * @param elementLocalName the local name of the XML element this Object represents\r
+ * @param namespacePrefix the namespace prefix to use\r
+ */\r
+ AbstractElementProxy(\r
+ const XMLCh* namespaceURI=NULL, const XMLCh* elementLocalName=NULL, const XMLCh* namespacePrefix=NULL\r
+ ) : AbstractDOMCachingXMLObject(namespaceURI,elementLocalName, namespacePrefix), m_value(NULL) {}\r
+\r
+ private:\r
+ XMLCh* m_value;\r
+ };\r
+ \r
+};\r
+\r
+#if defined (_MSC_VER)\r
+ #pragma warning( pop )\r
+#endif\r
+\r
+#endif /* __xmltooling_abseleproxy_h__ */\r