001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one or more
003: * contributor license agreements. See the NOTICE file distributed with
004: * this work for additional information regarding copyright ownership.
005: * The ASF licenses this file to You under the Apache License, Version 2.0
006: * (the "License"); you may not use this file except in compliance with
007: * the License. You may obtain a copy of the License at
008: *
009: * http://www.apache.org/licenses/LICENSE-2.0
010: *
011: * Unless required by applicable law or agreed to in writing, software
012: * distributed under the License is distributed on an "AS IS" BASIS,
013: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
014: * See the License for the specific language governing permissions and
015: * limitations under the License.
016: */
017:
018: package org.apache.xerces.impl.xs.opti;
019:
020: import org.w3c.dom.TypeInfo;
021: import org.w3c.dom.Attr;
022: import org.w3c.dom.Element;
023: import org.w3c.dom.NodeList;
024:
025: import org.w3c.dom.DOMException;
026:
027: /**
028: * @xerces.internal
029: *
030: * @author Rahul Srivastava, Sun Microsystems Inc.
031: *
032: * @version $Id: DefaultElement.java 446728 2006-09-15 20:43:46Z mrglavas $
033: */
034: public class DefaultElement extends NodeImpl implements Element {
035:
036: // default constructor
037: public DefaultElement() {
038: }
039:
040: public DefaultElement(String prefix, String localpart,
041: String rawname, String uri, short nodeType) {
042: super (prefix, localpart, rawname, uri, nodeType);
043: }
044:
045: //
046: // org.w3c.dom.Element methods
047: //
048:
049: // getter methods
050: public String getTagName() {
051: return null;
052: }
053:
054: public String getAttribute(String name) {
055: return null;
056: }
057:
058: public Attr getAttributeNode(String name) {
059: return null;
060: }
061:
062: public NodeList getElementsByTagName(String name) {
063: return null;
064: }
065:
066: public String getAttributeNS(String namespaceURI, String localName) {
067: return null;
068: }
069:
070: public Attr getAttributeNodeNS(String namespaceURI, String localName) {
071: return null;
072: }
073:
074: public NodeList getElementsByTagNameNS(String namespaceURI,
075: String localName) {
076: return null;
077: }
078:
079: public boolean hasAttribute(String name) {
080: return false;
081: }
082:
083: public boolean hasAttributeNS(String namespaceURI, String localName) {
084: return false;
085: }
086:
087: public TypeInfo getSchemaTypeInfo() {
088: return null;
089: }
090:
091: // setter methods
092: public void setAttribute(String name, String value)
093: throws DOMException {
094: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
095: "Method not supported");
096: }
097:
098: public void removeAttribute(String name) throws DOMException {
099: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
100: "Method not supported");
101: }
102:
103: public Attr removeAttributeNode(Attr oldAttr) throws DOMException {
104: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
105: "Method not supported");
106: }
107:
108: public Attr setAttributeNode(Attr newAttr) throws DOMException {
109: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
110: "Method not supported");
111: }
112:
113: public void setAttributeNS(String namespaceURI,
114: String qualifiedName, String value) throws DOMException {
115: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
116: "Method not supported");
117: }
118:
119: public void removeAttributeNS(String namespaceURI, String localName)
120: throws DOMException {
121: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
122: "Method not supported");
123: }
124:
125: public Attr setAttributeNodeNS(Attr newAttr) throws DOMException {
126: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
127: "Method not supported");
128: }
129:
130: public void setIdAttributeNode(Attr at, boolean makeId)
131: throws DOMException {
132: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
133: "Method not supported");
134: }
135:
136: public void setIdAttribute(String name, boolean makeId)
137: throws DOMException {
138: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
139: "Method not supported");
140: }
141:
142: public void setIdAttributeNS(String namespaceURI, String localName,
143: boolean makeId) throws DOMException {
144: throw new DOMException(DOMException.NOT_SUPPORTED_ERR,
145: "Method not supported");
146: }
147:
148: }
|