debian/0000755000000000000000000000000012164543507007175 5ustar debian/copyright0000644000000000000000000000442312162641173011127 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: dom4j Upstream-Contact: http://lists.sourceforge.net/lists/listinfo/dom4j-user Source: http://sourceforge.net/projects/dom4j/ Files: * Copyright: 2001-2005, MetaStuff, Ltd. License: DOM4J Files: debian/* Copyright: Copyright 2006-2009, Marcus Better License: DOM4J License: DOM4J Redistribution and use of this software and associated documentation ("Software"), with or without modification, are permitted provided that the following conditions are met: . 1. Redistributions of source code must retain copyright statements and notices. Redistributions must also contain a copy of this document. . 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. . 3. The name "DOM4J" must not be used to endorse or promote products derived from this Software without prior written permission of MetaStuff, Ltd. For written permission, please contact dom4j-info@metastuff.com. . 4. Products derived from this Software may not be called "DOM4J" nor may "DOM4J" appear in their names without prior written permission of MetaStuff, Ltd. DOM4J is a registered trademark of MetaStuff, Ltd. . 5. Due credit should be given to the DOM4J Project - http://www.dom4j.org . THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. debian/pom.xml0000644000000000000000000001470612162654021010512 0ustar 4.0.0 dom4j dom4j dom4j 1.6.1 dom4j: the flexible XML framework for Java http://dom4j.org http://sourceforge.net/tracker/?group_id=16035
dom4j-dev@lists.sourceforge.net
2001 dom4j user list http://lists.sourceforge.net/lists/listinfo/dom4j-user http://lists.sourceforge.net/lists/listinfo/dom4j-user http://www.mail-archive.com/dom4j-user%40lists.sourceforge.net/ dom4j developer list http://lists.sourceforge.net/lists/listinfo/dom4j-dev http://lists.sourceforge.net/lists/listinfo/dom4j-dev http://www.mail-archive.com/dom4j-dev%40lists.sourceforge.net/ dom4j commits list http://lists.sourceforge.net/lists/listinfo/dom4j-commits http://lists.sourceforge.net/lists/listinfo/dom4j-commits carnold Curt Arnold carnold@users.sourceforge.net ddlucas David Lucas ddlucas@users.sourceforge.net drwhite David White drwhite@users.sourceforge.net jjenkov Jakob Jenkov jjenkov@users.sourceforge.net jstrachan James Strachan jstrachan@apache.org SpiritSoft, Inc. laramiec Laramie Crocker laramiec@users.sourceforge.net maartenc Maarten Coene maartenc@users.sourceforge.net Cronos mskells Michael Skells mskells@users.sourceforge.net nicksanderson Nick Sanderson nicksanderson@users.sourceforge.net slehmann Steen Lehmann slehmann@users.sourceforge.net tradem Tobias Rademacher tradem@users.sourceforge.net werken Bob McWhirter werken@users.sourceforge.net wolfftw Todd Wolff wolfftw@users.sourceforge.net yeekee OuYang Chen yeekee@users.sourceforge.net yruan2 Yuxin Ruan yruan2@users.sourceforge.net scm:cvs:pserver:anonymous@cvs.sourceforge.net:/cvsroot/dom4j:dom4j scm:cvs:ext:${maven.username}@cvs.sourceforge.net:/cvsroot/dom4j:dom4j http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/dom4j/dom4j/ MetaStuff Ltd. http://sourceforge.net/projects/dom4j src/java src/test maven-surefire-plugin **/*Test.java jaxen jaxen 1.1-beta-6 true msv xsdlib 20030807 true msv relaxngDatatype 20030807 true pull-parser pull-parser 2 true xpp3 xpp3 1.1.3.3 true stax stax-api 1.0 true xml-apis xml-apis 1.0.b2 junitperf junitperf 1.8 test stax stax-ri 1.0 test xerces xercesImpl 2.6.2 test xalan xalan 2.5.1 test default Default Site scp://dom4j.org//home/groups/d/do/dom4j/htdocs
debian/compat0000644000000000000000000000000212162641173010367 0ustar 7 debian/libdom4j-java-doc.lintian-overrides0000644000000000000000000000023012162641173015732 0ustar # The changelog is referenced by the HTML documentation, so we leave # it uncompressed. libdom4j-java-doc: changelog-file-not-compressed changelog.html debian/README.Debian.source0000644000000000000000000000077512162641173012542 0ustar The following files have been removed from the upstream source package for DFSG compliance: * Binary-only jars in the `lib' directory and its subdirectories. * `src/java/org/dom4j/tree/ConcurrentReaderHashMap.java' which comes from Sun Microsystems and cannot be legally distributed. This class is not used when the java.util.concurrent package is present. * The generated files `docs/clover/org/dom4j/tree/ConcurrentReaderHashMap.html' and `docs/xref/org/dom4j/tree/ConcurrentReaderHashMap.html'. debian/orig-tar.exclude0000644000000000000000000000035012162641173012266 0ustar *.jar lib/*.jar lib/endorsed/* lib/test/* lib/tools/* docs/apidocs/* docs/clover/org/dom4j/tree/ConcurrentReaderHashMap.html docs/xref/org/dom4j/tree/ConcurrentReaderHashMap.html src/java/org/dom4j/tree/ConcurrentReaderHashMap.java debian/libdom4j-java-doc.dirs0000644000000000000000000000003412162641173013237 0ustar usr/share/lintian/overrides debian/watch0000644000000000000000000000017112162641173010221 0ustar version=3 opts="dversionmangle=s/\+dfsg(\.\d+)?//" \ http://sf.net/dom4j/dom4j-(.*)\.tar\.gz debian debian/orig-tar.sh debian/source/0000755000000000000000000000000012162641173010471 5ustar debian/source/format0000644000000000000000000000001412162641173011677 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012164543012010613 5ustar debian/patches/04_headless-test.patch0000644000000000000000000000054212162641173014712 0ustar --- a/xml/bean/gui.xml +++ b/xml/bean/gui.xml @@ -1,5 +1,5 @@ - - + + debian/patches/06_dom-level3-support.patch0000644000000000000000000006011512162641173015632 0ustar Description: Implement DOM Level 3 methods to fix the compilation with Java 5 and later Author: Torsten Werner Forwarded: not-needed --- a/src/java/org/dom4j/dom/DOMDocumentType.java +++ b/src/java/org/dom4j/dom/DOMDocumentType.java @@ -12,7 +12,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -177,6 +179,66 @@ public String getInternalSubset() { return getElementName(); } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMProcessingInstruction.java +++ b/src/java/org/dom4j/dom/DOMProcessingInstruction.java @@ -15,7 +15,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -177,6 +179,66 @@ } } + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } + // Implementation methods // ------------------------------------------------------------------------- } --- a/src/java/org/dom4j/dom/DOMAttribute.java +++ b/src/java/org/dom4j/dom/DOMAttribute.java @@ -14,7 +14,10 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.TypeInfo; +import org.w3c.dom.UserDataHandler; /** *

@@ -179,6 +182,76 @@ public org.w3c.dom.Element getOwnerElement() { return DOMNodeHelper.asDOMElement(getParent()); } + + public TypeInfo getSchemaTypeInfo() { + // TODO Auto-generated method stub + return null; + } + + public boolean isId() { + // TODO Auto-generated method stub + return false; + } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node other) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String textContent) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node other) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String namespaceURI) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String namespaceURI) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String prefix) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String feature, String version) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String key, Object data, UserDataHandler handler) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String key) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMDocumentFactory.java +++ b/src/java/org/dom4j/dom/DOMDocumentFactory.java @@ -174,6 +174,11 @@ docType.getPublicId(), docType.getSystemId()); } } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } } @@ -213,4 +218,4 @@ * POSSIBILITY OF SUCH DAMAGE. * * Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved. - */ \ No newline at end of file + */ --- a/src/java/org/dom4j/dom/DOMComment.java +++ b/src/java/org/dom4j/dom/DOMComment.java @@ -13,7 +13,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -187,6 +189,66 @@ throws DOMException { DOMNodeHelper.replaceData(this, offset, count, arg); } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node other) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String textContent) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node other) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String namespaceURI) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String namespaceURI) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String prefix) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String feature, String version) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String key, Object data, UserDataHandler handler) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String key) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMNamespace.java +++ b/src/java/org/dom4j/dom/DOMNamespace.java @@ -13,7 +13,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -140,6 +142,66 @@ public boolean hasAttributes() { return DOMNodeHelper.hasAttributes(this); } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMDocument.java +++ b/src/java/org/dom4j/dom/DOMDocument.java @@ -15,12 +15,15 @@ import org.w3c.dom.Attr; import org.w3c.dom.CDATASection; +import org.w3c.dom.DOMConfiguration; import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.EntityReference; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.w3c.dom.ProcessingInstruction; +import org.w3c.dom.UserDataHandler; /** *

@@ -301,6 +304,136 @@ return super.getDocumentFactory(); } } + + public String getInputEncoding() { + // TODO Auto-generated method stub + return null; + } + + public String getXmlEncoding() { + // TODO Auto-generated method stub + return null; + } + + public boolean getXmlStandalone() { + // TODO Auto-generated method stub + return false; + } + + public void setXmlStandalone(boolean arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public String getXmlVersion() { + // TODO Auto-generated method stub + return null; + } + + public void setXmlVersion(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean getStrictErrorChecking() { + // TODO Auto-generated method stub + return false; + } + + public void setStrictErrorChecking(boolean arg0) { + // TODO Auto-generated method stub + + } + + public String getDocumentURI() { + // TODO Auto-generated method stub + return null; + } + + public void setDocumentURI(String arg0) { + // TODO Auto-generated method stub + + } + + public Node adoptNode(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public DOMConfiguration getDomConfig() { + // TODO Auto-generated method stub + return null; + } + + public void normalizeDocument() { + // TODO Auto-generated method stub + + } + + public Node renameNode(Node arg0, String arg1, String arg2) throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMEntityReference.java +++ b/src/java/org/dom4j/dom/DOMEntityReference.java @@ -13,7 +13,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -166,6 +168,66 @@ public boolean hasAttributes() { return DOMNodeHelper.hasAttributes(this); } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMText.java +++ b/src/java/org/dom4j/dom/DOMText.java @@ -14,7 +14,9 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.UserDataHandler; /** *

@@ -224,6 +226,81 @@ protected Text createText(String text) { return new DOMText(text); } + + public boolean isElementContentWhitespace() { + // TODO Auto-generated method stub + return false; + } + + public String getWholeText() { + // TODO Auto-generated method stub + return null; + } + + public org.w3c.dom.Text replaceWholeText(String arg0) throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMCDATA.java +++ b/src/java/org/dom4j/dom/DOMCDATA.java @@ -14,7 +14,10 @@ import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; +import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.Text; +import org.w3c.dom.UserDataHandler; /** *

@@ -225,6 +228,81 @@ protected CDATA createCDATA(String text) { return new DOMCDATA(text); } + + public boolean isElementContentWhitespace() { + // TODO Auto-generated method stub + return false; + } + + public String getWholeText() { + // TODO Auto-generated method stub + return null; + } + + public Text replaceWholeText(String content) throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node other) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String textContent) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node other) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String namespaceURI) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String namespaceURI) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String prefix) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String feature, String version) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String key, Object data, UserDataHandler handler) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String key) { + // TODO Auto-generated method stub + return null; + } } /* --- a/src/java/org/dom4j/dom/DOMElement.java +++ b/src/java/org/dom4j/dom/DOMElement.java @@ -16,11 +16,14 @@ import org.dom4j.QName; import org.dom4j.tree.DefaultElement; +import org.w3c.dom.Attr; import org.w3c.dom.DOMException; import org.w3c.dom.Document; import org.w3c.dom.NamedNodeMap; import org.w3c.dom.Node; import org.w3c.dom.NodeList; +import org.w3c.dom.TypeInfo; +import org.w3c.dom.UserDataHandler; /** *

@@ -389,6 +392,86 @@ return getDocumentFactory().createQName(localName, prefix, namespace); } + + public TypeInfo getSchemaTypeInfo() { + // TODO Auto-generated method stub + return null; + } + + public void setIdAttribute(String arg0, boolean arg1) throws DOMException { + // TODO Auto-generated method stub + + } + + public void setIdAttributeNS(String arg0, String arg1, boolean arg2) throws DOMException { + // TODO Auto-generated method stub + + } + + public void setIdAttributeNode(Attr arg0, boolean arg1) throws DOMException { + // TODO Auto-generated method stub + + } + + public String getBaseURI() { + // TODO Auto-generated method stub + return null; + } + + public short compareDocumentPosition(Node arg0) throws DOMException { + // TODO Auto-generated method stub + return 0; + } + + public String getTextContent() throws DOMException { + // TODO Auto-generated method stub + return null; + } + + public void setTextContent(String arg0) throws DOMException { + // TODO Auto-generated method stub + + } + + public boolean isSameNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupPrefix(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isDefaultNamespace(String arg0) { + // TODO Auto-generated method stub + return false; + } + + public String lookupNamespaceURI(String arg0) { + // TODO Auto-generated method stub + return null; + } + + public boolean isEqualNode(Node arg0) { + // TODO Auto-generated method stub + return false; + } + + public Object getFeature(String arg0, String arg1) { + // TODO Auto-generated method stub + return null; + } + + public Object setUserData(String arg0, Object arg1, UserDataHandler arg2) { + // TODO Auto-generated method stub + return null; + } + + public Object getUserData(String arg0) { + // TODO Auto-generated method stub + return null; + } } /* debian/patches/series0000644000000000000000000000027512164542567012052 0ustar 01_build-tweaks.patch 02_disable-matrix-concat-test.patch 03_remove-non-free-map.patch 04_headless-test.patch 05_java7-compat.patch 06_dom-level3-support.patch 07_disable_xsd_support.patch debian/patches/03_remove-non-free-map.patch0000644000000000000000000000521012162641173015720 0ustar Description: Remove the usages of the non free ConcurrentReaderHashMap class. Forwarded: not-needed --- a/src/java/org/dom4j/tree/NamespaceCache.java +++ b/src/java/org/dom4j/tree/NamespaceCache.java @@ -10,6 +10,7 @@ import java.lang.ref.WeakReference; import java.lang.reflect.Constructor; import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; import org.dom4j.Namespace; @@ -26,45 +27,17 @@ * @version $Revision: 1.15 $ */ public class NamespaceCache { - private static final String CONCURRENTREADERHASHMAP_CLASS - = "EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap"; - /** * Cache of {@link Map}instances indexed by URI which contain caches of * {@link Namespace}for each prefix */ - protected static Map cache; + protected static Map cache = new ConcurrentHashMap(); /** * Cache of {@link Namespace}instances indexed by URI for default * namespaces with no prefixes */ - protected static Map noPrefixCache; - - static { - /* Try the java.util.concurrent.ConcurrentHashMap first. */ - try { - Class clazz = Class - .forName("java.util.concurrent.ConcurrentHashMap"); - Constructor construct = clazz.getConstructor(new Class[] { - Integer.TYPE, Float.TYPE, Integer.TYPE }); - cache = (Map) construct.newInstance(new Object[] {new Integer(11), - new Float(0.75f), new Integer(1) }); - noPrefixCache = (Map) construct.newInstance(new Object[] { - new Integer(11), new Float(0.75f), new Integer(1) }); - } catch (Throwable t1) { - /* Try to use the util.concurrent library (if in classpath) */ - try { - Class clazz = Class.forName(CONCURRENTREADERHASHMAP_CLASS); - cache = (Map) clazz.newInstance(); - noPrefixCache = (Map) clazz.newInstance(); - } catch (Throwable t2) { - /* If previous implementations fail, use internal one */ - cache = new ConcurrentReaderHashMap(); - noPrefixCache = new ConcurrentReaderHashMap(); - } - } - } + protected static Map noPrefixCache = new ConcurrentHashMap(); /** * DOCUMENT ME! @@ -154,7 +127,7 @@ answer = (Map) cache.get(uri); if (answer == null) { - answer = new ConcurrentReaderHashMap(); + answer = new ConcurrentHashMap(); cache.put(uri, answer); } } debian/patches/01_build-tweaks.patch0000644000000000000000000000475612162641173014550 0ustar Description: Link the Javadoc with the Java API installed with default-jre Fix the classpath for the tests Ignore test failures Forwarded: not-needed --- a/build.xml +++ b/build.xml @@ -24,6 +24,15 @@ + + + + + + + + + @@ -155,6 +164,7 @@ - + @@ -236,7 +246,7 @@ doctitle="${Name}" bottom="Copyright © ${year} MetaStuff Ltd. All Rights Reserved. Hosted by <p> <img src='http://sourceforge.net/sflogo.php?group_id=16035' width='88' height='31' border='0' alt='SourceForge Logo' />" stylesheetfile="${doc.dir}/style/javadoc.css"> - + @@ -270,7 +280,7 @@ - + debian/patches/07_disable_xsd_support.patch0000644000000000000000000000167412164543012016227 0ustar --- a/build.xml +++ b/build.xml @@ -155,6 +155,9 @@ source="1.3" deprecation="${deprecation}" classpathref="compile.classpath"> + + + @@ -169,6 +172,8 @@ optimize="${optimize}" deprecation="${deprecation}" classpathref="test.classpath"> + + @@ -292,6 +297,7 @@ + debian/patches/05_java7-compat.patch0000644000000000000000000000360312162641173014440 0ustar Description: Fixup compareTo function in Rule class to be compliant with the Java 7 (and Java 6) API. Comparisons where not symmetric with the upstream handling in this function: . r1 > r2 but ! r2 < r1 . Also added extra tests to ensure that comparison works both ways. Author: James Page Forwarded: no Bug-Debian: http://bugs.debian.org/673765 --- a/src/java/org/dom4j/rule/Rule.java +++ b/src/java/org/dom4j/rule/Rule.java @@ -99,16 +99,16 @@ * @return DOCUMENT ME! */ public int compareTo(Rule that) { - int answer = this.importPrecedence - that.importPrecedence; - - if (answer == 0) { - answer = (int) Math.round(this.priority - that.priority); - - if (answer == 0) { - answer = this.appearenceCount - that.appearenceCount; - } + int answer = 0; + if (this.importPrecedence != that.importPrecedence) { + answer = this.importPrecedence < that.importPrecedence ? -1 : 1; + } + else if (Double.compare(this.priority, that.priority) != 0) { + answer = Double.compare(this.priority, that.priority); + } + else if (this.appearenceCount != that.appearenceCount) { + answer = this.appearenceCount < that.appearenceCount ? -1 : 1; } - return answer; } --- a/src/test/org/dom4j/rule/RuleTest.java +++ b/src/test/org/dom4j/rule/RuleTest.java @@ -48,6 +48,18 @@ assertTrue("r1 > r2", value > 0); + value = r2.compareTo(r1); + + System.out.println("Comparison: " + value); + + assertTrue("r2 < r1", value < 0); + + value = r1.compareTo(r1); + + System.out.println("Comparison: " + value); + + assertTrue("r1 == r1", value == 0); + ArrayList list = new ArrayList(); list.add(r1); list.add(r2); debian/patches/02_disable-matrix-concat-test.patch0000644000000000000000000000126412162641173017274 0ustar Description: Disable the matrix concat test Bug-Debian: http://bugs.debian.org/439614 Forwarded: not-needed --- a/src/test/org/dom4j/xpath/MatrixConcatTest.java +++ b/src/test/org/dom4j/xpath/MatrixConcatTest.java @@ -32,10 +32,11 @@ String[] exp1 = {"EQUITY_CF1", "EQUITY_CF2", "EQUITY_CF3"}; String[] exp2 = {"EQUITY_BAR_CF1", "EQUITY_BAR_CF2", "EQUITY_BAR_CF3"}; - + /* Disabled. Doesn't wor k with any JVM I found. testMatrixConcat("'EQUITY_',/product/cashflows/CashFlow/XREF", exp1); testMatrixConcat("'EQUITY_','BAR_',/product/cashflows/CashFlow/XREF", exp2); + */ } // Implementation methods debian/libdom4j-java-doc.doc-base0000644000000000000000000000044312162641173013757 0ustar Document: libdom4j-java-doc Title: API Javadoc for dom4j Author: dom4j developers Abstract: This is the API Javadoc provided by the dom4j library. Section: Programming Format: HTML Index: /usr/share/doc/libdom4j-java-doc/apidocs/index.html Files: /usr/share/doc/libdom4j-java-doc/apidocs/* debian/rules0000755000000000000000000000117412164540461010254 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_JARS := ant ant-launcher xpp2 xpp3 jaxen \ xalan2 xercesImpl ant-junit junit junitperf DEB_ANT_BUILD_TARGET := package release-javadoc DEB_ANT_CHECK_TARGET := test DEB_DH_INSTALLCHANGELOGS_ARGS := -k DEB_INSTALL_CHANGELOGS_ALL := docs/changes-report.html install/libdom4j-java:: mh_installpom -plibdom4j-java debian/pom.xml mh_installjar -plibdom4j-java debian/pom.xml -l build/dom4j.jar clean:: mh_clean get-orig-source: uscan --force-download --rename debian/ant.properties0000644000000000000000000000002712162641173012070 0ustar java.awt.headless=true debian/orig-tar.sh0000755000000000000000000000045112162641173011254 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' DEBIAN_VERSION=$2 DIR=dom4j-$DEBIAN_VERSION TAR=../dom4j_$DEBIAN_VERSION+dfsg.3.orig.tar.gz # clean up the upstream tarball tar zxf $3 rm -f $3 GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR rm -rf $DIR exit 0 debian/libdom4j-java-doc.links0000644000000000000000000000014512162641173013421 0ustar usr/share/doc/libdom4j-java-doc/changelog-report.html usr/share/doc/libdom4j-java-doc/changelog.html debian/libdom4j-java-doc.docs0000644000000000000000000000006512162641173013232 0ustar docs/*.html docs/images docs/style build/doc/apidocs debian/changelog0000644000000000000000000001133012164543507011045 0ustar dom4j (1.6.1+dfsg.3-2ubuntu1) saucy; urgency=low * Drop support for XSD; this requires libmsv-java which is built using maven2 which is not in main: - d/control: Remove dependencies on libmsv-java. - d/rules: Don't include xsdlib on build classpath. - d/p/07_disable_xsd_support.patch: Patch out compilation and testing of XSD support features. -- James Page Tue, 02 Jul 2013 13:27:34 +0100 dom4j (1.6.1+dfsg.3-2) unstable; urgency=low * Removed the dependency on libjaxme-java * Use canonical URLs for the Vcs-* fields * Upload to unstable -- Emmanuel Bourg Wed, 26 Jun 2013 23:29:47 +0200 dom4j (1.6.1+dfsg.3-1) experimental; urgency=low * Team upload. * New repacking of upstream tarball that excludes jars and generated api docs. Thanks to Emmanuel Bourg. -- tony mancill Sat, 20 Apr 2013 11:40:33 -0700 dom4j (1.6.1+dfsg.2-7) experimental; urgency=low * Team upload. * Removed the dependency on backport-util-concurrent * Update Standards-Version: 3.9.4 (no changes) * debian/rules: Added a get-orig-source target to fetch the upstream tarball. The generated content, jars and non free classes are filtered on the fly. * Enabled XSD support by adding a dependency on libmsv-java * Link the Javadoc to the default JRE doc instead of the Classpath doc * Reorganized the patches into smaller units * Fixed the Debian version mangling in debian/watch -- Emmanuel Bourg Mon, 15 Apr 2013 17:40:26 +0200 dom4j (1.6.1+dfsg.2-6) unstable; urgency=low * Team upload. [ tony mancill ] * Remove Michael Koch from uploaders (Closes: #654011) [ James Page ] * Fix FTBFS with openjdk-7 (LP: #888121) (Closes: #673765): - d/patches/java7-compat.patch: Fix compareTo function in Rule class to ensure that comparisions are actually symmetric. [ Damien Raude-Morvan ] * Update Standards-Version: 3.9.3 * d/copyright: Update to copyright-format 1.0. -- tony mancill Fri, 03 Feb 2012 21:26:13 -0800 dom4j (1.6.1+dfsg.2-5) unstable; urgency=low * Team upload. * Remove Java runtime from Depends. * Switch to cdbs. -- Torsten Werner Wed, 17 Aug 2011 18:43:40 +0200 dom4j (1.6.1+dfsg.2-4) unstable; urgency=low * debian/control, debian/rules: Build with default-jdk -- Thierry Carrez Thu, 03 Jun 2010 16:14:12 +0200 dom4j (1.6.1+dfsg.2-3) unstable; urgency=low * Team upload. * Update Homepage to point to sourceforge site. * Install POM file. * Ignore test failures. * Add missing ${misc:Depends}. * Switch to source format 3.0. * Update Standards-Version: 3.8.4. -- Torsten Werner Thu, 27 May 2010 22:14:45 +0200 dom4j (1.6.1+dfsg.2-2) unstable; urgency=low * Make libdom4j-java Depend on default-jre-headless instead of kaffe. * Build-Depends on debhelper >= 7. * Use dh_prep instead of dh_clean -k. * Updated Standards-Version to 3.8.3. -- Michael Koch Fri, 25 Sep 2009 20:21:02 +0200 dom4j (1.6.1+dfsg.2-1) unstable; urgency=low * Remove non-free generated files. (Closes: #529308) * Change section to java. * Remove source files from jaxen since we have (circular) build dependency on libjaxen-java. (Closes: #427913) * Re-enable test case BeansTest by running tests in headless mode. (Closes: #403052) * Build-depend on ant-optional, since we use ant in the clean target. * debian/copyright: Machine-readable copyright format. * debian/control: Bump standards-version to 3.8.2. * Include sample code, thanks to Mario Lang. (Closes: #536079) -- Marcus Better Thu, 09 Jul 2009 20:34:46 +0200 dom4j (1.6.1+dfsg-3) unstable; urgency=low * Build-Depends on openjdk-6-jdk instead of java-gcj-runtime-dev. Fixes ThreadingTest testcase. Closes: #427456 * Disabled parts of MatrixConcatTest. This fails on *every* runtime. Closes: #439614 * Added myself to Uploaders. * Added Homepage, Vcs-Svn and Vcs-Browser fields. * Updated Standards-Version to 3.7.3. -- Michael Koch Thu, 10 Apr 2008 07:59:15 +0200 dom4j (1.6.1+dfsg-2) unstable; urgency=high * The two classes from jaxen in package org.jaxen.dom4j were accidentally left out of the previous version. (Closes: #403039) -- Marcus Better Thu, 14 Dec 2006 13:04:57 +0100 dom4j (1.6.1+dfsg-1) unstable; urgency=low [ Wolfgang Baer ] * Disabled support for STAX and datatypes (xsdlib) [ Marcus Better ] * Initial release. (Closes: #305227) * Removed binary third-party jars from source tarball. * debian/rules: Don't use cdbs. -- Marcus Better Mon, 9 Oct 2006 21:24:19 +0200 debian/control0000644000000000000000000000241512164541063010575 0ustar Source: dom4j Section: java Priority: optional Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Debian Java Maintainers Uploaders: Marcus Better , Emmanuel Bourg Build-Depends: debhelper (>= 7), ant-optional, default-jdk, maven-repo-helper, cdbs Build-Depends-Indep: antlr, libjaxen-java, libxpp2-java, libxpp3-java, libxerces2-java, libxalan2-java (>= 2.7.0), junit, libjunitperf-java Standards-Version: 3.9.4 Vcs-Svn: svn://anonscm.debian.org/pkg-java/trunk/dom4j Vcs-Browser: http://anonscm.debian.org/viewvc/pkg-java/trunk/dom4j Homepage: http://sourceforge.net/projects/dom4j/ Package: libdom4j-java Architecture: all Depends: ${misc:Depends}, libjaxen-java, libxpp2-java, libxpp3-java Suggests: libdom4j-java-doc Description: flexible XML framework for Java dom4j is a 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. Package: libdom4j-java-doc Architecture: all Section: doc Depends: ${misc:Depends} Suggests: libdom4j-java Description: documentation for libdom4j-java This package contains the documentation for dom4j, including the API Javadoc. debian/libdom4j-java.examples0000644000000000000000000000001612162641173013351 0ustar src/samples/*