You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by db...@apache.org on 2001/01/25 18:00:19 UTC
cvs commit: xml-xalan/c/src/XercesParserLiaison XercesDOM_NodeHack.cpp
dbertoni 01/01/25 09:00:19
Modified: c/src/XercesParserLiaison XercesDOM_NodeHack.cpp
Log:
Changes to remove dependencies on Xerces internal header files.
Revision Changes Path
1.3 +58 -0 xml-xalan/c/src/XercesParserLiaison/XercesDOM_NodeHack.cpp
Index: XercesDOM_NodeHack.cpp
===================================================================
RCS file: /home/cvs/xml-xalan/c/src/XercesParserLiaison/XercesDOM_NodeHack.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- XercesDOM_NodeHack.cpp 2000/11/02 01:46:43 1.2
+++ XercesDOM_NodeHack.cpp 2001/01/25 17:00:18 1.3
@@ -61,8 +61,10 @@
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
#include <dom/ElementImpl.hpp>
#include <dom/TextImpl.hpp>
+#endif
@@ -122,7 +124,11 @@
const DOMString
XercesDOM_ElementHack::getNodeNameImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNodeName();
+#else
+ return getNodeName();
+#endif
}
@@ -130,7 +136,11 @@
const DOMString
XercesDOM_ElementHack::getNodeValueImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNodeValue();
+#else
+ return getNodeValue();
+#endif
}
@@ -138,7 +148,11 @@
const DOMString
XercesDOM_ElementHack:: getNamespaceURIImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNamespaceURI();
+#else
+ return getNamespaceURI();
+#endif
}
@@ -146,7 +160,11 @@
const DOMString
XercesDOM_ElementHack::getPrefixImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getPrefix();
+#else
+ return getPrefix();
+#endif
}
@@ -154,7 +172,11 @@
const DOMString
XercesDOM_ElementHack::getLocalNameImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getLocalName();
+#else
+ return getLocalName();
+#endif
}
@@ -162,7 +184,11 @@
const DOMString
XercesDOM_ElementHack::getTagNameImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getTagName();
+#else
+ return getTagName();
+#endif
}
@@ -170,7 +196,11 @@
const DOMString
XercesDOM_ElementHack::getAttributeImpl(const DOMString& name) const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getAttribute(name);
+#else
+ return getAttribute(name);
+#endif
}
@@ -180,7 +210,11 @@
const DOMString& namespaceURI,
const DOMString& localName) const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getAttributeNS(namespaceURI, localName);
+#else
+ return getAttributeNS(namespaceURI, localName);
+#endif
}
@@ -208,7 +242,11 @@
const DOMString
XercesDOM_TextHack::getNodeNameImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNodeName();
+#else
+ return getNodeName();
+#endif
}
@@ -216,7 +254,11 @@
const DOMString
XercesDOM_TextHack::getNodeValueImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNodeValue();
+#else
+ return getNodeValue();
+#endif
}
@@ -224,7 +266,11 @@
const DOMString
XercesDOM_TextHack::getNamespaceURIImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getNamespaceURI();
+#else
+ return getNamespaceURI();
+#endif
}
@@ -232,7 +278,11 @@
const DOMString
XercesDOM_TextHack::getPrefixImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getPrefix();
+#else
+ return getPrefix();
+#endif
}
@@ -240,7 +290,11 @@
const DOMString
XercesDOM_TextHack::getLocalNameImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getLocalName();
+#else
+ return getLocalName();
+#endif
}
@@ -248,5 +302,9 @@
const DOMString
XercesDOM_TextHack::getDataImpl() const
{
+#if defined(XALAN_USE_XERCES_INTERNAL_CLASSES)
return getImpl()->getData();
+#else
+ return getData();
+#endif
}