1 16 17 package org.apache.xerces.impl.xs.opti; 18 19 import org.w3c.dom.DOMConfiguration ; 20 import org.w3c.dom.Attr ; 21 import org.w3c.dom.Node ; 22 import org.w3c.dom.Text ; 23 import org.w3c.dom.Element ; 24 import org.w3c.dom.Comment ; 25 import org.w3c.dom.Document ; 26 import org.w3c.dom.NodeList ; 27 import org.w3c.dom.DocumentType ; 28 import org.w3c.dom.CDATASection ; 29 import org.w3c.dom.EntityReference ; 30 import org.w3c.dom.DocumentFragment ; 31 import org.w3c.dom.DOMImplementation ; 32 import org.w3c.dom.ProcessingInstruction ; 33 34 import org.w3c.dom.DOMException ; 35 36 37 44 public class DefaultDocument extends NodeImpl 45 implements Document { 46 47 private String fDocumentURI = null; 48 49 public DefaultDocument() { 51 } 52 53 57 public DocumentType getDoctype() { 58 return null; 59 } 60 61 62 public DOMImplementation getImplementation() { 63 return null; 64 } 65 66 67 public Element getDocumentElement() { 68 return null; 69 } 70 71 72 public NodeList getElementsByTagName(String tagname) { 73 return null; 74 } 75 76 77 public NodeList getElementsByTagNameNS(String namespaceURI, String localName) { 78 return null; 79 } 80 81 82 public Element getElementById(String elementId) { 83 return null; 84 } 85 86 87 public Node importNode(Node importedNode, boolean deep) throws DOMException { 88 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 89 } 90 91 92 public Element createElement(String tagName) throws DOMException { 93 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 94 } 95 96 97 public DocumentFragment createDocumentFragment() { 98 return null; 99 } 100 101 102 public Text createTextNode(String data) { 103 return null; 104 } 105 106 public Comment createComment(String data) { 107 return null; 108 } 109 110 111 public CDATASection createCDATASection(String data) throws DOMException { 112 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 113 } 114 115 116 public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException { 117 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 118 } 119 120 121 public Attr createAttribute(String name) throws DOMException { 122 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 123 } 124 125 126 public EntityReference createEntityReference(String name) throws DOMException { 127 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 128 } 129 130 131 public Element createElementNS(String namespaceURI, String qualifiedName) throws DOMException { 132 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 133 } 134 135 136 public Attr createAttributeNS(String namespaceURI, String qualifiedName) throws DOMException { 137 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 138 } 139 140 142 public String getInputEncoding(){ 143 return null; 144 } 145 146 151 152 public String getXmlEncoding(){ 153 return null; 154 } 155 156 157 165 166 172 public boolean getXmlStandalone(){ 173 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 174 } 175 181 public void setXmlStandalone(boolean standalone){ 182 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 183 } 184 185 194 public String getXmlVersion(){ 195 return null; 196 } 197 206 public void setXmlVersion(String version) throws DOMException { 207 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 208 } 209 210 219 public boolean getStrictErrorChecking(){ 220 return false; 221 } 222 231 public void setStrictErrorChecking(boolean strictErrorChecking){ 232 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 233 } 234 235 242 public String getDocumentURI() { 243 return fDocumentURI; 244 } 245 246 253 public void setDocumentURI(String documentURI) { 254 fDocumentURI = documentURI; 255 } 256 257 258 public Node adoptNode(Node source) throws DOMException { 259 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 260 } 261 262 263 public void normalizeDocument(){ 264 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 265 } 266 267 272 public DOMConfiguration getDomConfig(){ 273 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 274 } 275 276 277 public Node renameNode(Node n,String namespaceURI, String name) throws DOMException { 278 throw new DOMException (DOMException.NOT_SUPPORTED_ERR, "Method not supported"); 279 } 280 281 282 283 284 285 286 287 288 } 289 | Popular Tags |