286N/A/*
286N/A * reserved comment block
286N/A * DO NOT REMOVE OR ALTER!
286N/A */
286N/A/*
286N/A * Copyright 2001, 2002,2004 The Apache Software Foundation.
286N/A *
286N/A * Licensed under the Apache License, Version 2.0 (the "License");
286N/A * you may not use this file except in compliance with the License.
286N/A * You may obtain a copy of the License at
286N/A *
286N/A * http://www.apache.org/licenses/LICENSE-2.0
286N/A *
286N/A * Unless required by applicable law or agreed to in writing, software
286N/A * distributed under the License is distributed on an "AS IS" BASIS,
286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
286N/A * See the License for the specific language governing permissions and
286N/A * limitations under the License.
286N/A */
286N/A
286N/Apackage com.sun.org.apache.xerces.internal.impl.xs.opti;
286N/A
286N/Aimport org.w3c.dom.UserDataHandler;
286N/Aimport org.w3c.dom.Node;
286N/Aimport org.w3c.dom.Document;
286N/Aimport org.w3c.dom.NodeList;
286N/Aimport org.w3c.dom.NamedNodeMap;
286N/A
286N/Aimport org.w3c.dom.DOMException;
286N/A
286N/A
286N/A/**
286N/A * @xerces.internal
286N/A *
286N/A * @author Rahul Srivastava, Sun Microsystems Inc.
286N/A *
286N/A */
286N/Apublic class DefaultNode implements Node {
286N/A
286N/A // default constructor
286N/A public DefaultNode() {
286N/A }
286N/A
286N/A //
286N/A // org.w3c.dom.Node methods
286N/A //
286N/A
286N/A // getter methods
286N/A public String getNodeName() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public String getNodeValue() throws DOMException {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public short getNodeType() {
286N/A return -1;
286N/A }
286N/A
286N/A
286N/A public Node getParentNode() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public NodeList getChildNodes() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public Node getFirstChild() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public Node getLastChild() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public Node getPreviousSibling() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public Node getNextSibling() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public NamedNodeMap getAttributes() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public Document getOwnerDocument() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public boolean hasChildNodes() {
286N/A return false;
286N/A }
286N/A
286N/A
286N/A public Node cloneNode(boolean deep) {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public void normalize() {
286N/A }
286N/A
286N/A
286N/A public boolean isSupported(String feature, String version) {
286N/A return false;
286N/A }
286N/A
286N/A
286N/A public String getNamespaceURI() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public String getPrefix() {
286N/A return null;
286N/A }
286N/A
286N/A
286N/A public String getLocalName() {
286N/A return null;
286N/A }
286N/A /** DOM Level 3*/
286N/A public String getBaseURI(){
286N/A return null;
286N/A }
286N/A
286N/A
286N/A
286N/A public boolean hasAttributes() {
286N/A return false;
286N/A }
286N/A
286N/A // setter methods
286N/A public void setNodeValue(String nodeValue) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A
286N/A public Node insertBefore(Node newChild, Node refChild) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A
286N/A public Node replaceChild(Node newChild, Node oldChild) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A
286N/A public Node removeChild(Node oldChild) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A
286N/A public Node appendChild(Node newChild) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A
286N/A public void setPrefix(String prefix) throws DOMException {
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A public short compareDocumentPosition(Node other){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A public String getTextContent() throws DOMException{
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A public void setTextContent(String textContent)throws DOMException{
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A public boolean isSameNode(Node other){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A
286N/A }
286N/A public String lookupPrefix(String namespaceURI){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A public boolean isDefaultNamespace(String namespaceURI){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A public String lookupNamespaceURI(String prefix){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A
286N/A public boolean isEqualNode(Node arg){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A
286N/A }
286N/A
286N/A public Object getFeature(String feature, String version){
286N/A return null;
286N/A }
286N/A public Object setUserData(String key, Object data, UserDataHandler handler){
286N/A throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
286N/A }
286N/A public Object getUserData(String key){
286N/A return null;
286N/A }
286N/A
286N/A
286N/A}