Xerces-C++ 3.2.5
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$
20 */
21
22#if !defined(XERCESC_INCLUDE_GUARD_DOMTEXT_HPP)
23#define XERCESC_INCLUDE_GUARD_DOMTEXT_HPP
24
27
29
30
52protected:
53 // -----------------------------------------------------------------------
54 // Hidden constructors
55 // -----------------------------------------------------------------------
59 DOMText(const DOMText &other) : DOMCharacterData(other) {}
61
62private:
63 // -----------------------------------------------------------------------
64 // Unimplemented constructors and operators
65 // -----------------------------------------------------------------------
68 DOMText & operator = (const DOMText &);
70
71public:
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
179
180#endif
181
182
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
uint16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
The DOMCharacterData interface extends DOMNode with a set of attributes and methods for accessing cha...
Definition DOMCharacterData.hpp:46
The DOMText interface inherits from DOMCharacterData and represents the textual content (termed chara...
Definition DOMText.hpp:51
virtual DOMText * splitText(XMLSize_t offset)=0
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.
virtual const XMLCh * getWholeText() const =0
Returns all text of DOMText nodes logically-adjacent text nodes to this node, concatenated in documen...
virtual bool isIgnorableWhitespace() const =0
Non-standard extension.
DOMText(const DOMText &other)
Definition DOMText.hpp:59
virtual ~DOMText()
Destructor.
Definition DOMText.hpp:81
virtual DOMText * replaceWholeText(const XMLCh *content)=0
Substitutes the a specified text for the text of the current node and all logically-adjacent text nod...
virtual bool getIsElementContentWhitespace() const =0
Returns whether this text node contains element content whitespace, often abusively called "ignorable...
DOMText()
Definition DOMText.hpp:58