1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Copyright 2001, 2002,2004 The Apache Software Foundation.
   7  *
   8  * Licensed under the Apache License, Version 2.0 (the "License");
   9  * you may not use this file except in compliance with the License.
  10  * You may obtain a copy of the License at
  11  *
  12  *      http://www.apache.org/licenses/LICENSE-2.0
  13  *
  14  * Unless required by applicable law or agreed to in writing, software
  15  * distributed under the License is distributed on an "AS IS" BASIS,
  16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  17  * See the License for the specific language governing permissions and
  18  * limitations under the License.
  19  */
  20 
  21 package com.sun.org.apache.xerces.internal.impl.xs.opti;
  22 
  23 import org.w3c.dom.UserDataHandler;
  24 import org.w3c.dom.Node;
  25 import org.w3c.dom.Document;
  26 import org.w3c.dom.NodeList;
  27 import org.w3c.dom.NamedNodeMap;
  28 
  29 import org.w3c.dom.DOMException;
  30 
  31 
  32 /**
  33  * @xerces.internal
  34  *
  35  * @author Rahul Srivastava, Sun Microsystems Inc.
  36  *
  37  */
  38 public class DefaultNode implements Node {
  39 
  40     // default constructor
  41     public DefaultNode() {
  42     }
  43 
  44     //
  45     // org.w3c.dom.Node methods
  46     //
  47 
  48     // getter methods
  49     public String getNodeName() {
  50         return null;
  51     }
  52 
  53 
  54     public String getNodeValue() throws DOMException {
  55         return null;
  56     }
  57 
  58 
  59     public short getNodeType() {
  60         return -1;
  61     }
  62 
  63 
  64     public Node getParentNode() {
  65         return null;
  66     }
  67 
  68 
  69     public NodeList getChildNodes() {
  70         return null;
  71     }
  72 
  73 
  74     public Node getFirstChild() {
  75         return null;
  76     }
  77 
  78 
  79     public Node getLastChild() {
  80         return null;
  81     }
  82 
  83 
  84     public Node getPreviousSibling() {
  85         return null;
  86     }
  87 
  88 
  89     public Node getNextSibling() {
  90         return null;
  91     }
  92 
  93 
  94     public NamedNodeMap getAttributes() {
  95         return null;
  96     }
  97 
  98 
  99     public Document getOwnerDocument() {
 100         return null;
 101     }
 102 
 103 
 104     public boolean hasChildNodes() {
 105         return false;
 106     }
 107 
 108 
 109     public Node cloneNode(boolean deep) {
 110         return null;
 111     }
 112 
 113 
 114     public void normalize() {
 115     }
 116 
 117 
 118     public boolean isSupported(String feature, String version) {
 119         return false;
 120     }
 121 
 122 
 123     public String getNamespaceURI() {
 124         return null;
 125     }
 126 
 127 
 128     public String getPrefix() {
 129         return null;
 130     }
 131 
 132 
 133     public String getLocalName() {
 134         return null;
 135     }
 136     /** DOM Level 3*/
 137     public String getBaseURI(){
 138         return null;
 139     }
 140 
 141 
 142 
 143     public boolean hasAttributes() {
 144         return false;
 145     }
 146 
 147     // setter methods
 148     public void setNodeValue(String nodeValue) throws DOMException {
 149         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 150     }
 151 
 152 
 153     public Node insertBefore(Node newChild, Node refChild) throws DOMException {
 154         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 155     }
 156 
 157 
 158     public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
 159         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 160     }
 161 
 162 
 163     public Node removeChild(Node oldChild) throws DOMException {
 164         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 165     }
 166 
 167 
 168     public Node appendChild(Node newChild) throws DOMException {
 169         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 170     }
 171 
 172 
 173     public void setPrefix(String prefix) throws DOMException {
 174         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 175     }
 176 
 177     public short compareDocumentPosition(Node other){
 178         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 179     }
 180 
 181     public String getTextContent() throws DOMException{
 182         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 183     }
 184     public void setTextContent(String textContent)throws DOMException{
 185         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 186     }
 187     public boolean isSameNode(Node other){
 188         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 189 
 190     }
 191     public String lookupPrefix(String namespaceURI){
 192         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 193                                         }
 194     public boolean isDefaultNamespace(String namespaceURI){
 195         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 196     }
 197 
 198     public String lookupNamespaceURI(String prefix){
 199         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 200     }
 201 
 202     public boolean isEqualNode(Node arg){
 203        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 204 
 205     }
 206 
 207     public Object getFeature(String feature, String version){
 208         return null;
 209     }
 210     public Object setUserData(String key,  Object data, UserDataHandler handler){
 211        throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 212     }
 213     public Object getUserData(String key){
 214         return null;
 215     }
 216 
 217 
 218 }