1 /*
   2  * reserved comment block
   3  * DO NOT REMOVE OR ALTER!
   4  */
   5 /*
   6  * Licensed to the Apache Software Foundation (ASF) under one or more
   7  * contributor license agreements.  See the NOTICE file distributed with
   8  * this work for additional information regarding copyright ownership.
   9  * The ASF licenses this file to You under the Apache License, Version 2.0
  10  * (the "License"); you may not use this file except in compliance with
  11  * the License.  You may obtain a copy of the License at
  12  *
  13  *      http://www.apache.org/licenses/LICENSE-2.0
  14  *
  15  * Unless required by applicable law or agreed to in writing, software
  16  * distributed under the License is distributed on an "AS IS" BASIS,
  17  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18  * See the License for the specific language governing permissions and
  19  * limitations under the License.
  20  */
  21 
  22 package com.sun.org.apache.xerces.internal.impl.xs.opti;
  23 
  24 import org.w3c.dom.TypeInfo;
  25 import org.w3c.dom.Attr;
  26 import org.w3c.dom.Element;
  27 import org.w3c.dom.NodeList;
  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 DefaultElement extends NodeImpl
  39                             implements Element {
  40 
  41     // default constructor
  42     public DefaultElement() {
  43     }
  44 
  45 
  46     public DefaultElement(String prefix, String localpart, String rawname, String uri, short nodeType) {
  47         super(prefix, localpart, rawname, uri, nodeType);
  48     }
  49 
  50 
  51     //
  52     // org.w3c.dom.Element methods
  53     //
  54 
  55     // getter methods
  56     public String getTagName() {
  57         return null;
  58     }
  59 
  60 
  61     public String getAttribute(String name) {
  62         return null;
  63     }
  64 
  65 
  66     public Attr getAttributeNode(String name) {
  67         return null;
  68     }
  69 
  70 
  71     public NodeList getElementsByTagName(String name) {
  72         return null;
  73     }
  74 
  75 
  76     public String getAttributeNS(String namespaceURI, String localName) {
  77         return null;
  78     }
  79 
  80 
  81     public Attr getAttributeNodeNS(String namespaceURI, String localName) {
  82         return null;
  83     }
  84 
  85 
  86     public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
  87         return null;
  88     }
  89 
  90 
  91     public boolean hasAttribute(String name) {
  92         return false;
  93     }
  94 
  95 
  96     public boolean hasAttributeNS(String namespaceURI, String localName) {
  97         return false;
  98     }
  99 
 100     public TypeInfo getSchemaTypeInfo(){
 101       return null;
 102     }
 103 
 104 
 105     // setter methods
 106     public void setAttribute(String name, String value) throws DOMException {
 107         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 108     }
 109 
 110 
 111     public void removeAttribute(String name) throws DOMException {
 112         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 113     }
 114 
 115 
 116     public Attr removeAttributeNode(Attr oldAttr) throws DOMException {
 117         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 118     }
 119 
 120 
 121     public Attr setAttributeNode(Attr newAttr) throws DOMException {
 122         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 123     }
 124 
 125 
 126     public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException {
 127         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 128     }
 129 
 130 
 131     public void removeAttributeNS(String namespaceURI, String localName) throws DOMException {
 132         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 133     }
 134 
 135 
 136     public Attr setAttributeNodeNS(Attr newAttr) throws DOMException {
 137         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 138     }
 139 
 140     public void setIdAttributeNode(Attr at, boolean makeId) throws DOMException{
 141         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 142     }
 143     public void setIdAttribute(String name, boolean makeId) throws DOMException{
 144         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 145     }
 146 
 147     public void setIdAttributeNS(String namespaceURI, String localName,
 148                                     boolean makeId) throws DOMException{
 149         throw new DOMException(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
 150     }
 151 
 152 }