| 1 | --- src/java/org/dom4j/dom/DOMAttribute.java.orig 2009-11-28 15:03:09.000000000 +0100 |
| 2 | +++ src/java/org/dom4j/dom/DOMAttribute.java 2009-11-28 17:57:22.000000000 +0100 |
| 3 | @@ -15,6 +15,7 @@ |
| 4 | import org.w3c.dom.Document; |
| 5 | import org.w3c.dom.NamedNodeMap; |
| 6 | import org.w3c.dom.NodeList; |
| 7 | +import org.w3c.dom.TypeInfo; |
| 8 | |
| 9 | /** |
| 10 | * <p> |
| 11 | @@ -179,6 +180,14 @@ |
| 12 | public org.w3c.dom.Element getOwnerElement() { |
| 13 | return DOMNodeHelper.asDOMElement(getParent()); |
| 14 | } |
| 15 | + |
| 16 | + public boolean isId() throws UnsupportedOperationException { |
| 17 | + throw new UnsupportedOperationException(); |
| 18 | + } |
| 19 | + |
| 20 | + public TypeInfo getSchemaTypeInfo() throws UnsupportedOperationException { |
| 21 | + throw new UnsupportedOperationException(); |
| 22 | + } |
| 23 | } |
| 24 | |
| 25 | /* |
| 26 | --- src/java/org/dom4j/dom/DOMDocument.java.orig 2009-11-28 15:03:09.000000000 +0100 |
| 27 | +++ src/java/org/dom4j/dom/DOMDocument.java 2009-11-28 18:11:18.000000000 +0100 |
| 28 | @@ -15,10 +15,12 @@ |
| 29 | |
| 30 | import org.w3c.dom.Attr; |
| 31 | import org.w3c.dom.CDATASection; |
| 32 | +import org.w3c.dom.DOMConfiguration; |
| 33 | import org.w3c.dom.DOMException; |
| 34 | import org.w3c.dom.Document; |
| 35 | import org.w3c.dom.EntityReference; |
| 36 | import org.w3c.dom.NamedNodeMap; |
| 37 | +import org.w3c.dom.Node; |
| 38 | import org.w3c.dom.NodeList; |
| 39 | import org.w3c.dom.ProcessingInstruction; |
| 40 | |
| 41 | @@ -301,6 +303,85 @@ |
| 42 | return super.getDocumentFactory(); |
| 43 | } |
| 44 | } |
| 45 | + |
| 46 | + public Node renameNode(Node n, String namespaceURI, String qualifiedName) |
| 47 | + throws UnsupportedOperationException { |
| 48 | + throw new UnsupportedOperationException(); |
| 49 | + } |
| 50 | + |
| 51 | + public void normalizeDocument() |
| 52 | + throws UnsupportedOperationException { |
| 53 | + throw new UnsupportedOperationException(); |
| 54 | + } |
| 55 | + |
| 56 | + public DOMConfiguration getDomConfig() |
| 57 | + throws UnsupportedOperationException { |
| 58 | + throw new UnsupportedOperationException(); |
| 59 | + } |
| 60 | + |
| 61 | + public Node adoptNode(Node source) throws UnsupportedOperationException { |
| 62 | + throw new UnsupportedOperationException(); |
| 63 | + } |
| 64 | + |
| 65 | + public void setDocumentURI(String documentURI) |
| 66 | + throws UnsupportedOperationException { |
| 67 | + throw new UnsupportedOperationException(); |
| 68 | + } |
| 69 | + |
| 70 | + public String getDocumentURI() |
| 71 | + throws UnsupportedOperationException { |
| 72 | + throw new UnsupportedOperationException(); |
| 73 | + } |
| 74 | + |
| 75 | + public void setStrictErrorChecking(boolean strictErrorChecking) |
| 76 | + throws UnsupportedOperationException { |
| 77 | + throw new UnsupportedOperationException(); |
| 78 | + } |
| 79 | + |
| 80 | + public boolean getStrictErrorChecking() |
| 81 | + throws UnsupportedOperationException { |
| 82 | + throw new UnsupportedOperationException(); |
| 83 | + } |
| 84 | + |
| 85 | + public void setXmlVersion(String xmlVersion) |
| 86 | + throws UnsupportedOperationException { |
| 87 | + throw new UnsupportedOperationException(); |
| 88 | + } |
| 89 | + |
| 90 | + public String getXmlVersion() |
| 91 | + throws UnsupportedOperationException { |
| 92 | + throw new UnsupportedOperationException(); |
| 93 | + } |
| 94 | + |
| 95 | + public void setXmlStandalone(boolean xmlStandalone) |
| 96 | + throws UnsupportedOperationException { |
| 97 | + throw new UnsupportedOperationException(); |
| 98 | + } |
| 99 | + |
| 100 | + public boolean getXmlStandalone() |
| 101 | + throws UnsupportedOperationException { |
| 102 | + throw new UnsupportedOperationException(); |
| 103 | + } |
| 104 | + |
| 105 | + public void setXmlEncoding(String xmlEncoding) |
| 106 | + throws UnsupportedOperationException { |
| 107 | + throw new UnsupportedOperationException(); |
| 108 | + } |
| 109 | + |
| 110 | + public String getXmlEncoding() |
| 111 | + throws UnsupportedOperationException { |
| 112 | + throw new UnsupportedOperationException(); |
| 113 | + } |
| 114 | + |
| 115 | + public void setInputEncoding(String xmlEncoding) |
| 116 | + throws UnsupportedOperationException { |
| 117 | + throw new UnsupportedOperationException(); |
| 118 | + } |
| 119 | + |
| 120 | + public String getInputEncoding() |
| 121 | + throws UnsupportedOperationException { |
| 122 | + throw new UnsupportedOperationException(); |
| 123 | + } |
| 124 | } |
| 125 | |
| 126 | /* |
| 127 | --- src/java/org/dom4j/dom/DOMDocumentFactory.java.orig 2009-11-28 15:03:09.000000000 +0100 |
| 128 | +++ src/java/org/dom4j/dom/DOMDocumentFactory.java 2009-11-28 17:51:19.000000000 +0100 |
| 129 | @@ -174,6 +174,11 @@ |
| 130 | docType.getPublicId(), docType.getSystemId()); |
| 131 | } |
| 132 | } |
| 133 | + |
| 134 | + public Object getFeature(String feature, String version) |
| 135 | + throws UnsupportedOperationException { |
| 136 | + throw new UnsupportedOperationException(); |
| 137 | + } |
| 138 | } |
| 139 | |
| 140 | |
| 141 | --- src/java/org/dom4j/dom/DOMElement.java.orig 2009-11-28 15:03:09.000000000 +0100 |
| 142 | +++ src/java/org/dom4j/dom/DOMElement.java 2009-11-28 17:39:51.000000000 +0100 |
| 143 | @@ -16,11 +16,13 @@ |
| 144 | import org.dom4j.QName; |
| 145 | import org.dom4j.tree.DefaultElement; |
| 146 | |
| 147 | +import org.w3c.dom.Attr; |
| 148 | import org.w3c.dom.DOMException; |
| 149 | import org.w3c.dom.Document; |
| 150 | import org.w3c.dom.NamedNodeMap; |
| 151 | import org.w3c.dom.Node; |
| 152 | import org.w3c.dom.NodeList; |
| 153 | +import org.w3c.dom.TypeInfo; |
| 154 | |
| 155 | /** |
| 156 | * <p> |
| 157 | @@ -389,6 +391,25 @@ |
| 158 | |
| 159 | return getDocumentFactory().createQName(localName, prefix, namespace); |
| 160 | } |
| 161 | + |
| 162 | + public void setIdAttributeNode(Attr idAttr, boolean isId) |
| 163 | + throws UnsupportedOperationException { |
| 164 | + throw new UnsupportedOperationException(); |
| 165 | + } |
| 166 | + |
| 167 | + public void setIdAttributeNS(String namespaceURI, String localName, |
| 168 | + boolean isId) throws UnsupportedOperationException { |
| 169 | + throw new UnsupportedOperationException(); |
| 170 | + } |
| 171 | + |
| 172 | + public void setIdAttribute(String localName, boolean isId) |
| 173 | + throws UnsupportedOperationException { |
| 174 | + throw new UnsupportedOperationException(); |
| 175 | + } |
| 176 | + |
| 177 | + public TypeInfo getSchemaTypeInfo() throws UnsupportedOperationException { |
| 178 | + throw new UnsupportedOperationException(); |
| 179 | + } |
| 180 | } |
| 181 | |
| 182 | /* |
| 183 | --- src/java/org/dom4j/tree/AbstractCharacterData.java.orig 2005-05-16 15:28:39.000000000 +0200 |
| 184 | +++ src/java/org/dom4j/tree/AbstractCharacterData.java 2009-11-28 17:55:18.000000000 +0100 |
| 185 | @@ -10,6 +10,8 @@ |
| 186 | import org.dom4j.CharacterData; |
| 187 | import org.dom4j.Element; |
| 188 | |
| 189 | +import org.w3c.dom.Text; |
| 190 | + |
| 191 | /** |
| 192 | * <p> |
| 193 | * <code>AbstractCharacterData</code> is an abstract base class for tree |
| 194 | @@ -41,6 +43,21 @@ |
| 195 | public void appendText(String text) { |
| 196 | setText(getText() + text); |
| 197 | } |
| 198 | + |
| 199 | + public Text replaceWholeText(String content) |
| 200 | + throws UnsupportedOperationException { |
| 201 | + throw new UnsupportedOperationException(); |
| 202 | + } |
| 203 | + |
| 204 | + public String getWholeText() |
| 205 | + throws UnsupportedOperationException { |
| 206 | + throw new UnsupportedOperationException(); |
| 207 | + } |
| 208 | + |
| 209 | + public boolean isElementContentWhitespace() |
| 210 | + throws UnsupportedOperationException { |
| 211 | + throw new UnsupportedOperationException(); |
| 212 | + } |
| 213 | } |
| 214 | |
| 215 | /* |
| 216 | --- src/java/org/dom4j/tree/AbstractNode.java.orig 2009-11-28 17:38:46.000000000 +0100 |
| 217 | +++ src/java/org/dom4j/tree/AbstractNode.java 2009-11-28 18:01:53.000000000 +0100 |
| 218 | @@ -20,6 +20,8 @@ |
| 219 | import org.dom4j.XPath; |
| 220 | import org.dom4j.rule.Pattern; |
| 221 | |
| 222 | +import org.w3c.dom.UserDataHandler; |
| 223 | + |
| 224 | /** |
| 225 | * <p> |
| 226 | * <code>AbstractNode</code> is an abstract base class for tree implementors |
| 227 | @@ -231,6 +233,66 @@ |
| 228 | throw new RuntimeException("asXPathResult() not yet implemented fully " |
| 229 | + "for: " + this); |
| 230 | } |
| 231 | + |
| 232 | + public Object getUserData(String key) |
| 233 | + throws UnsupportedOperationException { |
| 234 | + throw new UnsupportedOperationException(); |
| 235 | + } |
| 236 | + |
| 237 | + public Object setUserData(String key, Object data, UserDataHandler handler) |
| 238 | + throws UnsupportedOperationException { |
| 239 | + throw new UnsupportedOperationException(); |
| 240 | + } |
| 241 | + |
| 242 | + public boolean isEqualNode(org.w3c.dom.Node arg) |
| 243 | + throws UnsupportedOperationException { |
| 244 | + throw new UnsupportedOperationException(); |
| 245 | + } |
| 246 | + |
| 247 | + public boolean isDefaultNamespace(String namespaceURI) |
| 248 | + throws UnsupportedOperationException { |
| 249 | + throw new UnsupportedOperationException(); |
| 250 | + } |
| 251 | + |
| 252 | + public Object getFeature(String feature, String version) |
| 253 | + throws UnsupportedOperationException { |
| 254 | + throw new UnsupportedOperationException(); |
| 255 | + } |
| 256 | + |
| 257 | + public String lookupNamespaceURI(String prefix) |
| 258 | + throws UnsupportedOperationException { |
| 259 | + throw new UnsupportedOperationException(); |
| 260 | + } |
| 261 | + |
| 262 | + public String lookupPrefix(String namespaceURI) |
| 263 | + throws UnsupportedOperationException { |
| 264 | + throw new UnsupportedOperationException(); |
| 265 | + } |
| 266 | + |
| 267 | + public boolean isSameNode(org.w3c.dom.Node arg) |
| 268 | + throws UnsupportedOperationException { |
| 269 | + throw new UnsupportedOperationException(); |
| 270 | + } |
| 271 | + |
| 272 | + public void setTextContent(String textContent) |
| 273 | + throws UnsupportedOperationException { |
| 274 | + throw new UnsupportedOperationException(); |
| 275 | + } |
| 276 | + |
| 277 | + public String getTextContent() |
| 278 | + throws UnsupportedOperationException { |
| 279 | + throw new UnsupportedOperationException(); |
| 280 | + } |
| 281 | + |
| 282 | + public short compareDocumentPosition(org.w3c.dom.Node other) |
| 283 | + throws UnsupportedOperationException { |
| 284 | + throw new UnsupportedOperationException(); |
| 285 | + } |
| 286 | + |
| 287 | + public String getBaseURI() |
| 288 | + throws UnsupportedOperationException { |
| 289 | + throw new UnsupportedOperationException(); |
| 290 | + } |
| 291 | } |
| 292 | |
| 293 | /* |