summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Nichols <nichoj@gentoo.org>2006-09-14 04:42:57 +0000
committerJoshua Nichols <nichoj@gentoo.org>2006-09-14 04:42:57 +0000
commit5b839f3af347ec8256e6305df36fb5b36b90caf8 (patch)
treefd9164724fb84583bb6374290f68d778349eee75 /dev-java/dom4j
parentarm stable (diff)
downloadgentoo-2-5b839f3af347ec8256e6305df36fb5b36b90caf8.tar.gz
gentoo-2-5b839f3af347ec8256e6305df36fb5b36b90caf8.tar.bz2
gentoo-2-5b839f3af347ec8256e6305df36fb5b36b90caf8.zip
Applied patch for compiling with Java 1.5 provided by Martin Jansa <Martin.Jansa@mk.cvut.cz> in bug #137970. Added ~ppc64 keyword.
(Portage version: 2.1.1)
Diffstat (limited to 'dev-java/dom4j')
-rw-r--r--dev-java/dom4j/ChangeLog9
-rw-r--r--dev-java/dom4j/dom4j-1.6.1-r2.ebuild79
-rw-r--r--dev-java/dom4j/files/digest-dom4j-1.6.1-r23
-rw-r--r--dev-java/dom4j/files/dom4j-1.6.1-java5.patch1489
4 files changed, 1579 insertions, 1 deletions
diff --git a/dev-java/dom4j/ChangeLog b/dev-java/dom4j/ChangeLog
index 69fa88da06dc..80f75dfa1a3c 100644
--- a/dev-java/dom4j/ChangeLog
+++ b/dev-java/dom4j/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-java/dom4j
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/ChangeLog,v 1.30 2006/07/27 20:23:43 nelchael Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/ChangeLog,v 1.31 2006/09/14 04:42:57 nichoj Exp $
+
+*dom4j-1.6.1-r2 (14 Sep 2006)
+
+ 14 Sep 2006; Joshua Nichols <nichoj@gentoo.org>
+ +files/dom4j-1.6.1-java5.patch, +dom4j-1.6.1-r2.ebuild:
+ Applied patch for compiling with Java 1.5 provided by Martin Jansa
+ <Martin.Jansa@mk.cvut.cz> in bug #137970. Added ~ppc64 keyword.
*dom4j-1.6.1-r1 (27 Jul 2006)
diff --git a/dev-java/dom4j/dom4j-1.6.1-r2.ebuild b/dev-java/dom4j/dom4j-1.6.1-r2.ebuild
new file mode 100644
index 000000000000..d485e90ff9b4
--- /dev/null
+++ b/dev-java/dom4j/dom4j-1.6.1-r2.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/dom4j/dom4j-1.6.1-r2.ebuild,v 1.1 2006/09/14 04:42:57 nichoj Exp $
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Easy to use, open source library for working with XML, XPath and XSLT on the Java platform using the Java Collections Framework and with full support for DOM, SAX and JAXP."
+HOMEPAGE="http://dom4j.sourceforge.net/"
+SRC_URI="mirror://sourceforge/dom4j/${P}.tar.gz"
+LICENSE="Apache-1.1"
+SLOT="1"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="doc source"
+RDEPEND=">=virtual/jre-1.3
+ dev-java/jaxme
+ dev-java/jsr173
+ dev-java/msv
+ dev-java/xpp2
+ dev-java/xpp3
+ dev-java/relaxng-datatype
+ =dev-java/xerces-2*
+ dev-java/xsdlib"
+DEPEND=">=virtual/jdk-1.3
+ dev-java/ant-core
+ ${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ # Add missing methods to compile on Java 5
+ # see bug #137970
+ epatch ${FILESDIR}/${P}-java5.patch
+
+ cd ${S}/lib
+ #circular deps with jaxen
+ rm -f $(echo *.jar | sed 's/jaxen[^ ]\+//')
+ java-pkg_jar-from jaxme
+ java-pkg_jar-from jsr173
+ java-pkg_jar-from msv
+ java-pkg_jar-from xpp2
+ java-pkg_jar-from xpp3
+ java-pkg_jar-from relaxng-datatype
+ java-pkg_jar-from xsdlib
+
+ cd ${S}/lib/endorsed
+ rm -f *.jar
+ java-pkg_jar-from xerces-2 || die
+
+ rm -r ${S}/lib/test
+ # we don't really to fix any of these if we're not doing testing
+# # TODO: replace jsr173_1.0_ri.jar
+# java-pkg_jar-from ${JUNITPERF} || die
+
+ # We don't need the stuff in tools
+ rm -r ${S}/lib/tools
+# cd ${S}/lib/tools
+# # apparently we don't really need clover's jar
+# rm clover*
+# java-pkg_jar-from ${ISORELAX} || die
+# # TODO: replace jaxme-0.3.jar
+# # TODO: replace jaxme-js-0.3.jar
+# # TODO: replace jaxme-xs-0.3.jar
+# java-pkg_jar-from ${TIDY} || die
+# java-pkg_jar-from ${XALAN} || die
+# java-pkg_jar-from ${XERCES_IMPL} || die
+}
+
+src_compile() {
+ local antflags="clean package"
+ use doc && antflags="${antflags} -Dbuild.javadocs=build/doc/api javadoc"
+
+ eant ${antflags} || die "Compilation failed"
+}
+
+src_install() {
+ java-pkg_dojar build/${PN}.jar
+ use doc && java-pkg_dohtml -r build/doc/api
+ use source && java-pkg_dosrc src/java/*
+}
diff --git a/dev-java/dom4j/files/digest-dom4j-1.6.1-r2 b/dev-java/dom4j/files/digest-dom4j-1.6.1-r2
new file mode 100644
index 000000000000..d8185ba880ea
--- /dev/null
+++ b/dev-java/dom4j/files/digest-dom4j-1.6.1-r2
@@ -0,0 +1,3 @@
+MD5 1e7ef6d20939315714de4a8502f27b2d dom4j-1.6.1.tar.gz 9687211
+RMD160 d990d712a6b58c799366c526b32eb6c84a81e29c dom4j-1.6.1.tar.gz 9687211
+SHA256 01b4abf86bce337a2a900bf121b3107320ba63b4c0f352e1922fbec6e0736c6f dom4j-1.6.1.tar.gz 9687211
diff --git a/dev-java/dom4j/files/dom4j-1.6.1-java5.patch b/dev-java/dom4j/files/dom4j-1.6.1-java5.patch
new file mode 100644
index 000000000000..c52c83904971
--- /dev/null
+++ b/dev-java/dom4j/files/dom4j-1.6.1-java5.patch
@@ -0,0 +1,1489 @@
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMAttribute.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMAttribute.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMAttribute.java 2006-06-25 21:44:17.910118994 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMAttribute.java 2006-06-25 21:34:34.207577206 +0200
+@@ -179,7 +179,7 @@
+ public org.w3c.dom.Element getOwnerElement() {
+ return DOMNodeHelper.asDOMElement(getParent());
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -217,3 +217,127 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @see org.w3c.dom.Attr#isId()
++ */
++ public boolean isId()
++ {
++ return false;
++// return "id".equals(this.avAdaptee.getAttribute());
++ }
++
++ /**
++ * @todo DOM level 3 getSchemaTypeInfo() Not implemented. Returns null.
++ * @see org.w3c.dom.Attr#getSchemaTypeInfo()
++ */
++ public org.w3c.dom.TypeInfo getSchemaTypeInfo()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMCDATA.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMCDATA.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMCDATA.java 2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMCDATA.java 2006-06-25 21:34:34.203578032 +0200
+@@ -225,7 +225,7 @@
+ protected CDATA createCDATA(String text) {
+ return new DOMCDATA(text);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -263,3 +263,136 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 getWholeText() Not implemented. Returns null.
++ * @see org.w3c.dom.Text#getWholeText()
++ */
++ public String getWholeText()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 isElementContentWhitespace() Not implemented. Returns false.
++ * @see org.w3c.dom.Text#isElementContentWhitespace()
++ */
++ public boolean isElementContentWhitespace()
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 replaceWholeText() Not implemented. Returns the same node.
++ * @see org.w3c.dom.Text#isElementContentWhitespace()
++ */
++ public org.w3c.dom.Text replaceWholeText(String content) throws DOMException
++ {
++ return this;
++ }
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMComment.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMComment.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMComment.java 2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMComment.java 2006-06-25 21:34:34.112596808 +0200
+@@ -187,7 +187,7 @@
+ throws DOMException {
+ DOMNodeHelper.replaceData(this, offset, count, arg);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -225,3 +225,109 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocumentFactory.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocumentFactory.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocumentFactory.java 2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocumentFactory.java 2006-06-25 21:34:34.105598253 +0200
+@@ -174,7 +174,7 @@
+ docType.getPublicId(), docType.getSystemId());
+ }
+ }
+-}
++
+
+
+
+@@ -213,4 +213,8 @@
+ * POSSIBILITY OF SUCH DAMAGE.
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+- */
+\ No newline at end of file
++ */
++ public java.lang.Object getFeature(java.lang.String feature,java.lang.String version) {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocument.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocument.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocument.java 2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocument.java 2006-06-25 21:34:34.110597221 +0200
+@@ -301,7 +301,7 @@
+ return super.getDocumentFactory();
+ }
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -339,3 +339,238 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 adoptNode() Not implemented.
++ * @see org.w3c.dom.Document#adoptNode(org.w3c.dom.Node)
++ */
++ public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getDocumentURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Document#getDocumentURI()
++ */
++ public String getDocumentURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getDomConfig() Not implemented. Returns null.
++ * @see org.w3c.dom.Document#getDomConfig()
++ */
++ public org.w3c.dom.DOMConfiguration getDomConfig()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getInputEncoding() Not implemented. Returns null.
++ * @see org.w3c.dom.Document#getInputEncoding()
++ */
++ public String getInputEncoding()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getStrictErrorChecking() Not implemented. Returns true.
++ * @see org.w3c.dom.Document#getStrictErrorChecking()
++ */
++ public boolean getStrictErrorChecking()
++ {
++ return true;
++ }
++
++ /**
++ * @todo DOM level 3 getXmlEncoding() Not implemented. Returns null.
++ * @see org.w3c.dom.Document#getXmlEncoding()
++ */
++ public String getXmlEncoding()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getXmlStandalone() Not implemented. Returns false.
++ * @see org.w3c.dom.Document#getXmlStandalone()
++ */
++ public boolean getXmlStandalone()
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 getXmlVersion() Not implemented. Always returns "1.0".
++ * @see org.w3c.dom.Document#getXmlVersion()
++ */
++ public String getXmlVersion()
++ {
++ // An attribute specifying, as part of the XML declaration, the version number of this document. If there is no
++ // declaration and if this document supports the "XML" feature, the value is "1.0"
++ return "1.0";
++ }
++
++ /**
++ * @todo DOM level 3 normalizeDocument() Not implemented. Do nothing.
++ * @see org.w3c.dom.Document#normalizeDocument()
++ */
++ public void normalizeDocument()
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 renameNode() Not implemented. Throws NOT_SUPPORTED_ERR.
++ * @see org.w3c.dom.Document#renameNode(org.w3c.dom.Node, java.lang.String, java.lang.String)
++ */
++ public org.w3c.dom.Node renameNode(org.w3c.dom.Node n, String namespaceURI, String qualifiedName)
++ throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 setDocumentURI() Not implemented. Do nothing.
++ * @see org.w3c.dom.Document#setDocumentURI(java.lang.String)
++ */
++ public void setDocumentURI(String documentURI)
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 setStrictErrorChecking() Not implemented. Do nothing.
++ * @see org.w3c.dom.Document#setStrictErrorChecking(boolean)
++ */
++ public void setStrictErrorChecking(boolean strictErrorChecking)
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 setXmlStandalone() Not implemented. Do nothing.
++ * @see org.w3c.dom.Document#setXmlStandalone(boolean)
++ */
++ public void setXmlStandalone(boolean xmlStandalone) throws DOMException
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 setXmlVersion() Not implemented. Do nothing.
++ * @see org.w3c.dom.Document#setXmlVersion(java.lang.String)
++ */
++ public void setXmlVersion(String xmlVersion) throws DOMException
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocumentType.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocumentType.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocumentType.java 2006-06-25 21:44:17.912118581 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMDocumentType.java 2006-06-25 21:34:34.160586904 +0200
+@@ -177,7 +177,7 @@
+ public String getInternalSubset() {
+ return getElementName();
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -215,3 +215,109 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMElement.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMElement.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMElement.java 2006-06-25 21:44:18.005099394 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMElement.java 2006-06-25 21:34:34.154588142 +0200
+@@ -389,7 +389,7 @@
+
+ return getDocumentFactory().createQName(localName, prefix, namespace);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -427,3 +427,154 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 2 getOwnerDocument() Not supported. Do nothing.
++ * @see org.w3c.dom.Element#normalize
++ */
++ public void normalize()
++ {
++ // do nothing
++ }
++
++ /**
++ * @todo DOM level 3 getSchemaTypeInfo() Not supported. Returns null.
++ * @see org.w3c.dom.Element#getSchemaTypeInfo()
++ */
++ public org.w3c.dom.TypeInfo getSchemaTypeInfo()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setIdAttribute() Not supported. Throws NOT_SUPPORTED_ERR.
++ * @see org.w3c.dom.Element#setIdAttribute(java.lang.String, boolean)
++ */
++ public void setIdAttribute(String name, boolean isId) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 setIdAttributeNode() Not supported. Throws NOT_SUPPORTED_ERR.
++ * @see org.w3c.dom.Element#setIdAttributeNode(org.w3c.dom.Attr, boolean)
++ */
++ public void setIdAttributeNode(org.w3c.dom.Attr idAttr, boolean isId) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 setIdAttributeNS() Not supported. Throws NOT_SUPPORTED_ERR.
++ * @see org.w3c.dom.Element#setIdAttributeNS(java.lang.String, java.lang.String, boolean)
++ */
++ public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMEntityReference.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMEntityReference.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMEntityReference.java 2006-06-25 21:44:18.005099394 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMEntityReference.java 2006-06-25 21:34:34.156587730 +0200
+@@ -166,7 +166,7 @@
+ public boolean hasAttributes() {
+ return DOMNodeHelper.hasAttributes(this);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -204,3 +204,109 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMNamespace.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMNamespace.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMNamespace.java 2006-06-25 21:44:18.005099394 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMNamespace.java 2006-06-25 21:34:34.108597634 +0200
+@@ -140,7 +140,7 @@
+ public boolean hasAttributes() {
+ return DOMNodeHelper.hasAttributes(this);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -178,3 +178,109 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMProcessingInstruction.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMProcessingInstruction.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMProcessingInstruction.java 2006-06-25 21:44:18.006099187 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMProcessingInstruction.java 2006-06-25 21:34:34.162586491 +0200
+@@ -179,7 +179,7 @@
+
+ // Implementation methods
+ // -------------------------------------------------------------------------
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -217,3 +217,109 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}
+diff -urN dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMText.java dom4j-1.6.1/src/java/org/dom4j/dom/DOMText.java
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMText.java 2006-06-25 21:44:18.006099187 +0200
++++ dom4j-1.6.1/src/java/org/dom4j/dom/DOMText.java 2006-06-25 21:34:34.205577619 +0200
+@@ -224,7 +224,7 @@
+ protected Text createText(String text) {
+ return new DOMText(text);
+ }
+-}
++
+
+ /*
+ * Redistribution and use of this software and associated documentation
+@@ -262,3 +262,136 @@
+ *
+ * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+ */
++
++ /**
++ * @todo DOM level 3 getWholeText() Not implemented. Returns null.
++ * @see org.w3c.dom.Text#getWholeText()
++ */
++ public String getWholeText()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 isElementContentWhitespace() Not implemented. Returns false.
++ * @see org.w3c.dom.Text#isElementContentWhitespace()
++ */
++ public boolean isElementContentWhitespace()
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 replaceWholeText() Not implemented. Returns the same node.
++ * @see org.w3c.dom.Text#isElementContentWhitespace()
++ */
++ public org.w3c.dom.Text replaceWholeText(String content) throws DOMException
++ {
++ return this;
++ }
++
++ /**
++ * @todo DOM level 3 compareDocumentPosition() Not implemented.
++ * @see org.w3c.dom.Node#compareDocumentPosition(org.w3c.dom.Node)
++ */
++ public short compareDocumentPosition(org.w3c.dom.Node other) throws DOMException
++ {
++ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "DOM method not supported");
++ }
++
++ /**
++ * @todo DOM level 3 getBaseURI() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getBaseURI()
++ */
++ public String getBaseURI()
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getFeature() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getFeature(java.lang.String, java.lang.String)
++ */
++ public Object getFeature(String feature, String version)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getTextContent() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getTextContent()
++ */
++ public String getTextContent() throws DOMException
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 getUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#getUserData(java.lang.String)
++ */
++ public Object getUserData(String key)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#isDefaultNamespace(java.lang.String)
++ */
++ public boolean isDefaultNamespace(String namespaceURI)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isEqualNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isEqualNode(org.w3c.dom.Node)
++ */
++ public boolean isEqualNode(org.w3c.dom.Node arg)
++ {
++ return false;
++ }
++
++ /**
++ * @todo DOM level 3 isSameNode() Not implemented. Returns false.
++ * @see org.w3c.dom.Node#isSameNode(org.w3c.dom.Node)
++ */
++ public boolean isSameNode(org.w3c.dom.Node other)
++ {
++ return false;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupNamespaceURI(java.lang.String)
++ */
++ public String lookupNamespaceURI(String prefix)
++ {
++ return null;
++ }
++
++ /**
++ * @see org.w3c.dom.Node#lookupPrefix(java.lang.String)
++ */
++ public String lookupPrefix(String namespaceURI)
++ {
++ return null;
++ }
++
++ /**
++ * @todo DOM level 3 setTextContent() Not implemented. Throws NO_MODIFICATION_ALLOWED_ERR
++ * @see org.w3c.dom.Node#setTextContent(java.lang.String)
++ */
++ public void setTextContent(String textContent) throws DOMException
++ {
++ throw new DOMException(DOMException.NO_MODIFICATION_ALLOWED_ERR, "Node is read only");
++ }
++
++ /**
++ * @todo DOM level 3 setUserData() Not implemented. Returns null.
++ * @see org.w3c.dom.Node#setUserData(java.lang.String, java.lang.Object, org.w3c.dom.UserDataHandler)
++ */
++ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler)
++ {
++ return null;
++ }
++}