You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2002/07/15 21:24:32 UTC
cvs commit: xml-xerces/c/src/xercesc/dom/impl DOMCDATASectionImpl.cpp DOMCDATASectionImpl.hpp
tng 2002/07/15 12:24:32
Modified: c/src/xercesc/dom/impl DOMCDATASectionImpl.cpp
DOMCDATASectionImpl.hpp
Log:
DOM L3:
1. Support DOMText::getIsWhitespaceInElementContent(),
2. declare a dummy DOMText::getWholeText, and DOMText::replaceWholeText
3. declare dummy DOMNode::getBaseURI, compareTreePosition, get/setTextContent, lookupNamespacePrefix, isDefaultNamespace, lookupNamespaceURI, getInterface
Revision Changes Path
1.6 +26 -1 xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.cpp
Index: DOMCDATASectionImpl.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DOMCDATASectionImpl.cpp 27 Jun 2002 18:41:47 -0000 1.5
+++ DOMCDATASectionImpl.cpp 15 Jul 2002 19:24:32 -0000 1.6
@@ -158,6 +158,22 @@
};
+bool DOMCDATASectionImpl::getIsWhitespaceInElementContent() const
+{
+ return isIgnorableWhitespace();
+}
+
+const XMLCh* DOMCDATASectionImpl::getWholeText() {
+ throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
+ return 0;
+}
+
+DOMText* DOMCDATASectionImpl::replaceWholeText(const XMLCh* content){
+ throw DOMException(DOMException::NOT_SUPPORTED_ERR, 0);
+ return 0;
+}
+
+
void DOMCDATASectionImpl::release()
{
if (fNode.isOwned() && !fNode.isToBeReleased())
@@ -208,6 +224,15 @@
void* DOMCDATASectionImpl::setUserData(const XMLCh* key, void* data, DOMUserDataHandler* handler)
{return fNode.setUserData(key, data, handler); };
void* DOMCDATASectionImpl::getUserData(const XMLCh* key) const {return fNode.getUserData(key); };
+ const XMLCh* DOMCDATASectionImpl::getBaseURI() const {return fNode.getBaseURI(); };
+ short DOMCDATASectionImpl::compareTreePosition(DOMNode* other) {return fNode.compareTreePosition(other); };
+ const XMLCh* DOMCDATASectionImpl::getTextContent() const {return fNode.getTextContent(); };
+ void DOMCDATASectionImpl::setTextContent(const XMLCh* textContent){fNode.setTextContent(textContent); };
+ const XMLCh* DOMCDATASectionImpl::lookupNamespacePrefix(const XMLCh* namespaceURI, bool useDefault) {return fNode.lookupNamespacePrefix(namespaceURI, useDefault); };
+ bool DOMCDATASectionImpl::isDefaultNamespace(const XMLCh* namespaceURI) {return fNode.isDefaultNamespace(namespaceURI); };
+ const XMLCh* DOMCDATASectionImpl::lookupNamespaceURI(const XMLCh* prefix) {return fNode.lookupNamespaceURI(prefix); };
+ DOMNode* DOMCDATASectionImpl::getInterface(const XMLCh* feature) {return fNode.getInterface(feature); };
+
//
1.3 +7 -2 xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.hpp
Index: DOMCDATASectionImpl.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/dom/impl/DOMCDATASectionImpl.hpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DOMCDATASectionImpl.hpp 27 May 2002 18:12:19 -0000 1.2
+++ DOMCDATASectionImpl.hpp 15 Jul 2002 19:24:32 -0000 1.3
@@ -94,8 +94,13 @@
// Functions inherited from TEXT
virtual DOMText* splitText(XMLSize_t offset);
- virtual bool isIgnorableWhitespace() const;
+ // DOM Level 3
+ virtual bool getIsWhitespaceInElementContent() const;
+ virtual const XMLCh* getWholeText();
+ virtual DOMText* replaceWholeText(const XMLCh* content);
+ // non-standard extension
+ virtual bool isIgnorableWhitespace() const;
// Declare all of the functions from DOMNode.
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org