You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@cocoon.apache.org by jo...@apache.org on 2004/06/11 13:34:32 UTC
cvs commit: cocoon-2.1/src/java/org/apache/cocoon/xml/dom DocumentWrapper.java
joerg 2004/06/11 04:34:32
Modified: src/java/org/apache/cocoon/xml/dom DocumentWrapper.java
Log:
added renameNode() for providing future compatibility to JDK 1.5's DOM level 3 Document interface (thanks to Berin Loritsch)
Revision Changes Path
1.6 +9 -2 cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DocumentWrapper.java
Index: DocumentWrapper.java
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/java/org/apache/cocoon/xml/dom/DocumentWrapper.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- DocumentWrapper.java 17 Mar 2004 12:09:52 -0000 1.5
+++ DocumentWrapper.java 11 Jun 2004 11:34:32 -0000 1.6
@@ -813,7 +813,14 @@
public Node removeChild(Node oldChild) throws DOMException {
return this.document.removeChild(oldChild);
}
-
+
+ /**
+ * @since DOM Level 3
+ */
+ public Node renameNode(Node node, String namespaceURI, String qualifiedName) throws DOMException {
+ throw new UnsupportedOperationException("This method was just added for providing future compatibility to JDK 1.5's DOM level 3 Document interface.");
+ }
+
/** Replaces the child node <code>oldChild</code> with <code>newChild</code>
* in the list of children, and returns the <code>oldChild</code> node.
* <br>If <code>newChild</code> is a <code>DocumentFragment</code> object,