packages: java-dom4j/dom4j-java5.patch (NEW) - raw from https://bugs.gentoo...

glen glen at pld-linux.org
Sun Oct 23 14:59:12 CEST 2011


Author: glen                         Date: Sun Oct 23 12:59:12 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- raw from https://bugs.gentoo.org/137970

---- Files affected:
packages/java-dom4j:
   dom4j-java5.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/java-dom4j/dom4j-java5.patch
diff -u /dev/null packages/java-dom4j/dom4j-java5.patch:1.1
--- /dev/null	Sun Oct 23 14:59:12 2011
+++ packages/java-dom4j/dom4j-java5.patch	Sun Oct 23 14:59:07 2011
@@ -0,0 +1,1477 @@
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMAttribute.java	2006-06-25 21:44:17.910118994 +0200
++++ dom4j-1.6.1.orig/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;
++    }
++}
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMCDATA.java	2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1.orig/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;
++    }
++}
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMComment.java	2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1.orig/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;
++    }
++}
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocumentFactory.java	2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1.orig/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.
+- */
++ */
++	public java.lang.Object getFeature(java.lang.String feature,java.lang.String version) {
++	  return null;
++	}
++}
+--- dom4j-1.6.1.orig/src/java/org/dom4j/dom/DOMDocument.java	2006-06-25 21:44:17.911118787 +0200
++++ dom4j-1.6.1.orig/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;
++    }
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list