DOMText.hpp
Go to the documentation of this file.
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*
* $Id$
*/
#if !defined(XERCESC_INCLUDE_GUARD_DOMTEXT_HPP)
#define XERCESC_INCLUDE_GUARD_DOMTEXT_HPP
#include <xercesc/util/XercesDefs.hpp>
#include <xercesc/dom/DOMCharacterData.hpp>
XERCES_CPP_NAMESPACE_BEGIN
class CDOM_EXPORT DOMText: public DOMCharacterData {
protected:
// -----------------------------------------------------------------------
// Hidden constructors
// -----------------------------------------------------------------------
DOMText() {}
DOMText(const DOMText &other) : DOMCharacterData(other) {}
private:
// -----------------------------------------------------------------------
// Unimplemented constructors and operators
// -----------------------------------------------------------------------
DOMText & operator = (const DOMText &);
public:
// -----------------------------------------------------------------------
// All constructors are hidden, just the destructor is available
// -----------------------------------------------------------------------
virtual ~DOMText() {};
// -----------------------------------------------------------------------
// Virtual DOMText interface
// -----------------------------------------------------------------------
virtual DOMText *splitText(XMLSize_t offset) = 0;
virtual bool getIsElementContentWhitespace() const = 0;
virtual const XMLCh* getWholeText() const = 0;
virtual DOMText* replaceWholeText(const XMLCh* content) = 0;
// -----------------------------------------------------------------------
// Non-standard extension
// -----------------------------------------------------------------------
virtual bool isIgnorableWhitespace() const = 0;
};
XERCES_CPP_NAMESPACE_END
#endif
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