1 16 17 package org.apache.xerces.impl.xs.opti; 18 19 import org.w3c.dom.UserDataHandler ; 20 import org.w3c.dom.Node ; 21 import org.w3c.dom.Document ; 22 import org.w3c.dom.NodeList ; 23 import org.w3c.dom.NamedNodeMap ; 24 25 import org.w3c.dom.DOMException ; 26 27 28 35 public class DefaultNode implements Node { 36 37 public DefaultNode() { 39 } 40 41 45 public String getNodeName() { 47 return null; 48 } 49 50 51 public String getNodeValue() throws DOMException { 52 return null; 53 } 54 55 56 public short getNodeType() { 57 return -1; 58 } 59 60 61 public Node getParentNode() { 62 return null; 63 } 64 65 66 public NodeList getChildNodes() { 67 return null; 68 } 69 70 71 public Node getFirstChild() { 72 return null; 73 } 74 75 76 public Node getLastChild() { 77 return null; 78 } 79 80 81 public Node getPreviousSibling() { 82 return null; 83 } 84 85 86 public Node getNextSibling() { 87 return null; 88 } 89 90 91 public NamedNodeMap getAttributes() { 92 return null; 93 } 94 95 96 public Document getOwnerDocument() { 97 return null; 98 } 99 100 101 public boolean hasChildNodes() { 102 return false; 103 } 104 105 106 public Node cloneNode(boolean deep) { 107 return null; 108 } 109 110 111 public void normalize() { 112 } 113 114 115 public boolean isSupported(String feature, String version) { 116 return false; 117 } 118 119 120 public String getNamespaceURI() { 121 return null; 122 } 123 124 125 public String getPrefix() { 126 return null; 127 } 128 129 130 public String getLocalName() { 131 return null; 132 } 133 134 public String getBaseURI(){ 135 return null; 136 } 137 138 139 140 public boolean hasAttributes() { 141 return false; 142 } 143 144 public void setNodeValue(String nodeValue) throws DOMException { 146 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 147 } 148 149 150 public Node insertBefore(Node newChild, Node refChild) throws DOMException { 151 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 152 } 153 154 155 public Node replaceChild(Node newChild, Node oldChild) throws DOMException { 156 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 157 } 158 159 160 public Node removeChild(Node oldChild) throws DOMException { 161 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 162 } 163 164 165 public Node appendChild(Node newChild) throws DOMException { 166 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 167 } 168 169 170 public void setPrefix(String prefix) throws DOMException { 171 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 172 } 173 174 public short compareDocumentPosition(Node other){ 175 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 176 } 177 178 public String getTextContent() throws DOMException { 179 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 180 } 181 public void setTextContent(String textContent)throws DOMException { 182 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 183 } 184 public boolean isSameNode(Node other){ 185 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 186 187 } 188 public String lookupPrefix(String namespaceURI){ 189 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 190 } 191 public boolean isDefaultNamespace(String namespaceURI){ 192 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 193 } 194 195 public String lookupNamespaceURI(String prefix){ 196 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 197 } 198 199 public boolean isEqualNode(Node arg){ 200 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 201 202 } 203 204 public Object getFeature(String feature, String version){ 205 return null; 206 } 207 public Object setUserData(String key, Object data, UserDataHandler handler){ 208 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 209 } 210 public Object getUserData(String key){ 211 return null; 212 } 213 214 215 } 216 217 | Popular Tags |