1 57 58 package com.sun.org.apache.xerces.internal.impl.xs.opti; 59 60 import org.w3c.dom.UserDataHandler ; 61 import org.w3c.dom.Node ; 62 import org.w3c.dom.Document ; 63 import org.w3c.dom.NodeList ; 64 import org.w3c.dom.NamedNodeMap ; 65 66 import org.w3c.dom.DOMException ; 67 68 69 74 public class DefaultNode implements Node { 75 76 public DefaultNode() { 78 } 79 80 84 public String getNodeName() { 86 return null; 87 } 88 89 90 public String getNodeValue() throws DOMException { 91 return null; 92 } 93 94 95 public short getNodeType() { 96 return -1; 97 } 98 99 100 public Node getParentNode() { 101 return null; 102 } 103 104 105 public NodeList getChildNodes() { 106 return null; 107 } 108 109 110 public Node getFirstChild() { 111 return null; 112 } 113 114 115 public Node getLastChild() { 116 return null; 117 } 118 119 120 public Node getPreviousSibling() { 121 return null; 122 } 123 124 125 public Node getNextSibling() { 126 return null; 127 } 128 129 130 public NamedNodeMap getAttributes() { 131 return null; 132 } 133 134 135 public Document getOwnerDocument() { 136 return null; 137 } 138 139 140 public boolean hasChildNodes() { 141 return false; 142 } 143 144 145 public Node cloneNode(boolean deep) { 146 return null; 147 } 148 149 150 public void normalize() { 151 } 152 153 154 public boolean isSupported(String feature, String version) { 155 return false; 156 } 157 158 159 public String getNamespaceURI() { 160 return null; 161 } 162 163 164 public String getPrefix() { 165 return null; 166 } 167 168 169 public String getLocalName() { 170 return null; 171 } 172 173 public String getBaseURI(){ 174 return null; 175 } 176 177 178 179 public boolean hasAttributes() { 180 return false; 181 } 182 183 public void setNodeValue(String nodeValue) throws DOMException { 185 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 186 } 187 188 189 public Node insertBefore(Node newChild, Node refChild) throws DOMException { 190 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 191 } 192 193 194 public Node replaceChild(Node newChild, Node oldChild) throws DOMException { 195 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 196 } 197 198 199 public Node removeChild(Node oldChild) throws DOMException { 200 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 201 } 202 203 204 public Node appendChild(Node newChild) throws DOMException { 205 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 206 } 207 208 209 public void setPrefix(String prefix) throws DOMException { 210 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 211 } 212 213 public short compareDocumentPosition(Node other){ 214 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 215 } 216 217 public String getTextContent() throws DOMException { 218 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 219 } 220 public void setTextContent(String textContent)throws DOMException { 221 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 222 } 223 public boolean isSameNode(Node other){ 224 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 225 226 } 227 public String lookupPrefix(String namespaceURI){ 228 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 229 } 230 public boolean isDefaultNamespace(String namespaceURI){ 231 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 232 } 233 234 public String lookupNamespaceURI(String prefix){ 235 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 236 } 237 238 public boolean isEqualNode(Node arg){ 239 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 240 241 } 242 243 public Object getFeature(String feature, String version){ 244 return null; 245 } 246 public Object setUserData(String key, Object data, UserDataHandler handler){ 247 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 248 } 249 public Object getUserData(String key){ 250 return null; 251 } 252 253 254 } 255 256 | Popular Tags |