1 7 8 package org.dom4j.dom; 9 10 import org.dom4j.Element; 11 import org.dom4j.tree.DefaultNamespace; 12 13 import org.w3c.dom.DOMException ; 14 import org.w3c.dom.Document ; 15 import org.w3c.dom.NamedNodeMap ; 16 import org.w3c.dom.NodeList ; 17 18 27 public class DOMNamespace extends DefaultNamespace implements org.w3c.dom.Node { 28 public DOMNamespace(String prefix, String uri) { 29 super(prefix, uri); 30 } 31 32 public DOMNamespace(Element parent, String prefix, String uri) { 33 super(parent, prefix, uri); 34 } 35 36 public boolean supports(String feature, String version) { 39 return DOMNodeHelper.supports(this, feature, version); 40 } 41 42 public String getNamespaceURI() { 43 return DOMNodeHelper.getNamespaceURI(this); 44 } 45 46 public void setPrefix(String prefix) throws DOMException { 50 DOMNodeHelper.setPrefix(this, prefix); 51 } 52 53 public String getLocalName() { 54 return DOMNodeHelper.getLocalName(this); 55 } 56 57 public String getNodeName() { 58 return getName(); 59 } 60 61 public String getNodeValue() throws DOMException { 65 return DOMNodeHelper.getNodeValue(this); 66 } 67 68 public void setNodeValue(String nodeValue) throws DOMException { 69 DOMNodeHelper.setNodeValue(this, nodeValue); 70 } 71 72 public org.w3c.dom.Node getParentNode() { 73 return DOMNodeHelper.getParentNode(this); 74 } 75 76 public NodeList getChildNodes() { 77 return DOMNodeHelper.getChildNodes(this); 78 } 79 80 public org.w3c.dom.Node getFirstChild() { 81 return DOMNodeHelper.getFirstChild(this); 82 } 83 84 public org.w3c.dom.Node getLastChild() { 85 return DOMNodeHelper.getLastChild(this); 86 } 87 88 public org.w3c.dom.Node getPreviousSibling() { 89 return DOMNodeHelper.getPreviousSibling(this); 90 } 91 92 public org.w3c.dom.Node getNextSibling() { 93 return DOMNodeHelper.getNextSibling(this); 94 } 95 96 public NamedNodeMap getAttributes() { 97 return DOMNodeHelper.getAttributes(this); 98 } 99 100 public Document getOwnerDocument() { 101 return DOMNodeHelper.getOwnerDocument(this); 102 } 103 104 public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, 105 org.w3c.dom.Node refChild) throws DOMException { 106 return DOMNodeHelper.insertBefore(this, newChild, refChild); 107 } 108 109 public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, 110 org.w3c.dom.Node oldChild) throws DOMException { 111 return DOMNodeHelper.replaceChild(this, newChild, oldChild); 112 } 113 114 public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) 115 throws DOMException { 116 return DOMNodeHelper.removeChild(this, oldChild); 117 } 118 119 public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) 120 throws DOMException { 121 return DOMNodeHelper.appendChild(this, newChild); 122 } 123 124 public boolean hasChildNodes() { 125 return DOMNodeHelper.hasChildNodes(this); 126 } 127 128 public org.w3c.dom.Node cloneNode(boolean deep) { 129 return DOMNodeHelper.cloneNode(this, deep); 130 } 131 132 public void normalize() { 133 DOMNodeHelper.normalize(this); 134 } 135 136 public boolean isSupported(String feature, String version) { 137 return DOMNodeHelper.isSupported(this, feature, version); 138 } 139 140 public boolean hasAttributes() { 141 return DOMNodeHelper.hasAttributes(this); 142 } 143 } 144 145 181 | Popular Tags |