2 * Copyright 2001-2006 Internet2
\r
4 * Licensed under the Apache License, Version 2.0 (the "License");
\r
5 * you may not use this file except in compliance with the License.
\r
6 * You may obtain a copy of the License at
\r
8 * http://www.apache.org/licenses/LICENSE-2.0
\r
10 * Unless required by applicable law or agreed to in writing, software
\r
11 * distributed under the License is distributed on an "AS IS" BASIS,
\r
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
13 * See the License for the specific language governing permissions and
\r
14 * limitations under the License.
\r
18 * @file AbstractExtensibleXMLObject.h
\r
20 * An abstract implementation of a DOM-caching ExtensibleXMLObject
\r
23 #if !defined(__xmltooling_absextxmlobj_h__)
\r
24 #define __xmltooling_absextxmlobj_h__
\r
26 #include <xmltooling/AbstractDOMCachingXMLObject.h>
\r
27 #include <xmltooling/ExtensibleXMLObject.h>
\r
29 using namespace xercesc;
\r
31 #if defined (_MSC_VER)
\r
32 #pragma warning( push )
\r
33 #pragma warning( disable : 4250 4251 )
\r
36 namespace xmltooling {
\r
39 * An abstract implementation of a DOM-caching ExtensibleXMLObject.
\r
41 class XMLTOOL_API AbstractExtensibleXMLObject : public virtual AbstractDOMCachingXMLObject
\r
44 virtual ~AbstractExtensibleXMLObject() {}
\r
47 * @see ExtensibleXMLObject::getTextContent()
\r
49 virtual const XMLCh* getTextContent() const {
\r
54 * @see ExtensibleXMLObject::setTextContent()
\r
56 virtual void setTextContent(const XMLCh* value);
\r
60 * @see ExtensibleXMLObject::getXMLObjects()
\r
62 virtual ListOf(XMLObject) getXMLObjects();
\r
68 * @param namespaceURI the namespace the element is in
\r
69 * @param elementLocalName the local name of the XML element this Object represents
\r
70 * @param namespacePrefix the namespace prefix to use
\r
72 AbstractExtensibleXMLObject(
\r
73 const XMLCh* namespaceURI=NULL, const XMLCh* elementLocalName=NULL, const XMLCh* namespacePrefix=NULL
\r
74 ) : AbstractDOMCachingXMLObject(namespaceURI,elementLocalName, namespacePrefix), m_value(NULL) {}
\r
82 #if defined (_MSC_VER)
\r
83 #pragma warning( pop )
\r
86 #endif /* __xmltooling_absextxmlobj_h__ */
\r