KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > xs > opti > DefaultElement


1 /*
2  * Copyright 2001, 2002,2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.impl.xs.opti;
18
19 import org.w3c.dom.TypeInfo JavaDoc;
20 import org.w3c.dom.Attr JavaDoc;
21 import org.w3c.dom.Element JavaDoc;
22 import org.w3c.dom.NodeList JavaDoc;
23
24 import org.w3c.dom.DOMException JavaDoc;
25
26
27 /**
28  * @xerces.internal
29  *
30  * @author Rahul Srivastava, Sun Microsystems Inc.
31  *
32  * @version $Id: DefaultElement.java,v 1.8 2005/05/02 22:00:52 mrglavas Exp $
33  */

34 public class DefaultElement extends NodeImpl
35                             implements Element JavaDoc {
36
37     // default constructor
38
public DefaultElement() {
39     }
40     
41     
42     public DefaultElement(String JavaDoc prefix, String JavaDoc localpart, String JavaDoc rawname, String JavaDoc uri, short nodeType) {
43         super(prefix, localpart, rawname, uri, nodeType);
44     }
45     
46     
47     //
48
// org.w3c.dom.Element methods
49
//
50

51     // getter methods
52
public String JavaDoc getTagName() {
53         return null;
54     }
55
56
57     public String JavaDoc getAttribute(String JavaDoc name) {
58         return null;
59     }
60
61
62     public Attr JavaDoc getAttributeNode(String JavaDoc name) {
63         return null;
64     }
65
66
67     public NodeList JavaDoc getElementsByTagName(String JavaDoc name) {
68         return null;
69     }
70
71
72     public String JavaDoc getAttributeNS(String JavaDoc namespaceURI, String JavaDoc localName) {
73         return null;
74     }
75
76
77     public Attr JavaDoc getAttributeNodeNS(String JavaDoc namespaceURI, String JavaDoc localName) {
78         return null;
79     }
80
81
82     public NodeList JavaDoc getElementsByTagNameNS(String JavaDoc namespaceURI, String JavaDoc localName) {
83         return null;
84     }
85
86
87     public boolean hasAttribute(String JavaDoc name) {
88         return false;
89     }
90
91
92     public boolean hasAttributeNS(String JavaDoc namespaceURI, String JavaDoc localName) {
93         return false;
94     }
95     
96     public TypeInfo JavaDoc getSchemaTypeInfo(){
97       return null;
98     }
99     
100
101     // setter methods
102
public void setAttribute(String JavaDoc name, String JavaDoc value) throws DOMException JavaDoc {
103         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
104     }
105
106
107     public void removeAttribute(String JavaDoc name) throws DOMException JavaDoc {
108         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
109     }
110
111
112     public Attr JavaDoc removeAttributeNode(Attr JavaDoc oldAttr) throws DOMException JavaDoc {
113         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
114     }
115     
116     
117     public Attr JavaDoc setAttributeNode(Attr JavaDoc newAttr) throws DOMException JavaDoc {
118         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
119     }
120     
121     
122     public void setAttributeNS(String JavaDoc namespaceURI, String JavaDoc qualifiedName, String JavaDoc value) throws DOMException JavaDoc {
123         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
124     }
125     
126     
127     public void removeAttributeNS(String JavaDoc namespaceURI, String JavaDoc localName) throws DOMException JavaDoc {
128         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
129     }
130     
131     
132     public Attr JavaDoc setAttributeNodeNS(Attr JavaDoc newAttr) throws DOMException JavaDoc {
133         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
134     }
135     
136     public void setIdAttributeNode(Attr JavaDoc at, boolean makeId) throws DOMException JavaDoc{
137         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
138     }
139     public void setIdAttribute(String JavaDoc name, boolean makeId) throws DOMException JavaDoc{
140         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
141     }
142     
143     public void setIdAttributeNS(String JavaDoc namespaceURI, String JavaDoc localName,
144                                     boolean makeId) throws DOMException JavaDoc{
145         throw new DOMException JavaDoc(DOMException.NOT_SUPPORTED_ERR, "Method not supported");
146     }
147
148 }
149     
Popular Tags