Xerces-C++: DOMText.hpp Source File

Xerces-C++ 3.3.0

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
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 {
52protected:
53 // -----------------------------------------------------------------------
54 // Hidden constructors
55 // -----------------------------------------------------------------------
58 DOMText() {}
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
178 XERCES_CPP_NAMESPACE_END
179
180#endif
181
182
DOMCharacterData.hpp
XercesDefs.hpp
CDOM_EXPORT
#define CDOM_EXPORT
Definition XercesDefs.hpp:166
XERCES_CPP_NAMESPACE_BEGIN
#define XERCES_CPP_NAMESPACE_BEGIN
Definition XercesDefs.hpp:112
XERCES_CPP_NAMESPACE_END
#define XERCES_CPP_NAMESPACE_END
Definition XercesDefs.hpp:113
XMLSize_t
size_t XMLSize_t
Definition Xerces_autoconf_config.hpp:112
XMLCh
char16_t XMLCh
Definition Xerces_autoconf_config.hpp:120
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
DOMText::splitText
virtual DOMText * splitText(XMLSize_t offset)=0
Breaks this node into two nodes at the specified offset, keeping both in the tree as siblings.
DOMText::getWholeText
virtual const XMLCh * getWholeText() const =0
Returns all text of DOMText nodes logically-adjacent text nodes to this node, concatenated in documen...
DOMText::isIgnorableWhitespace
virtual bool isIgnorableWhitespace() const =0
Non-standard extension.
DOMText::DOMText
DOMText(const DOMText &other)
Definition DOMText.hpp:59
DOMText::~DOMText
virtual ~DOMText()
Destructor.
Definition DOMText.hpp:81
DOMText::replaceWholeText
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...
DOMText::getIsElementContentWhitespace
virtual bool getIsElementContentWhitespace() const =0
Returns whether this text node contains element content whitespace, often abusively called "ignorable...
DOMText::DOMText
DOMText()
Definition DOMText.hpp:58