Xerces-C++: DOMText.hpp Source File

Xerces-C++ 3.2.2

DOMText.hpp
Go to the documentation of this file.
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 */
17
18 /*
19 * $Id: DOMText.hpp 527149 2007-04-10 14:56:39Z amassari $
20 */
21
22 #if !defined(XERCESC_INCLUDE_GUARD_DOMTEXT_HPP)
23 #define XERCESC_INCLUDE_GUARD_DOMTEXT_HPP
24
25 #include <xercesc/util/XercesDefs.hpp>
26 #include <xercesc/dom/DOMCharacterData.hpp>
27
28 XERCES_CPP_NAMESPACE_BEGIN
29
30
51 class CDOM_EXPORT DOMText: public DOMCharacterData {
52 protected:
53 // -----------------------------------------------------------------------
54 // Hidden constructors
55 // -----------------------------------------------------------------------
58 DOMText() {}
59 DOMText(const DOMText &other) : DOMCharacterData(other) {}
61
62 private:
63 // -----------------------------------------------------------------------
64 // Unimplemented constructors and operators
65 // -----------------------------------------------------------------------
68 DOMText & operator = (const DOMText &);
70
71 public:
72 // -----------------------------------------------------------------------
73 // All constructors are hidden, just the destructor is available
74 // -----------------------------------------------------------------------
81 virtual ~DOMText() {};
83
84 // -----------------------------------------------------------------------
85 // Virtual DOMText interface
86 // -----------------------------------------------------------------------
107 virtual DOMText *splitText(XMLSize_t offset) = 0;
109
120 virtual bool getIsElementContentWhitespace() const = 0;
121
128 virtual const XMLCh* getWholeText() const = 0;
129
158 virtual DOMText* replaceWholeText(const XMLCh* content) = 0;
160
161 // -----------------------------------------------------------------------
162 // Non-standard extension
163 // -----------------------------------------------------------------------
172 virtual bool isIgnorableWhitespace() const = 0;
174
175 };
176
177
178 XERCES_CPP_NAMESPACE_END
179
180 #endif
181
182
DOMText::~DOMText
virtual ~DOMText()
Destructor.
Definition: DOMText.hpp:81
XercesDefs.hpp
DOMCharacterData
The DOMCharacterData interface extends DOMNode with a set of attributes and methods for accessing cha...
Definition: DOMCharacterData.hpp:46
DOMText
The DOMText interface inherits from DOMCharacterData and represents the textual content (termed chara...
Definition: DOMText.hpp:51
CDOM_EXPORT
#define CDOM_EXPORT
Definition: XercesDefs.hpp:166
XMLCh
uint16_t XMLCh
Definition: Xerces_autoconf_config.hpp:120
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition: XercesDefs.hpp:112
DOMCharacterData.hpp
XMLSize_t
size_t XMLSize_t
Definition: Xerces_autoconf_config.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition: XercesDefs.hpp:113
DOMText::DOMText
DOMText(const DOMText &other)
Definition: DOMText.hpp:59
DOMText::DOMText
DOMText()
Definition: DOMText.hpp:58