KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > xml > ImmutableAttributesImpl


1 /*
2  * Copyright 2005 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 package org.apache.cocoon.xml;
17
18 import org.xml.sax.Attributes JavaDoc;
19
20 /**
21  * Immutable attributes
22  *
23  * @version $Id: ImmutableAttributesImpl.java 164042 2005-04-21 12:09:38Z vgritsenko $
24  */

25 public class ImmutableAttributesImpl extends AttributesImpl {
26
27     public ImmutableAttributesImpl() {
28         super();
29     }
30
31     public ImmutableAttributesImpl(Attributes JavaDoc attrs) {
32         super(attrs);
33     }
34
35     public void clear() {
36         throw new UnsupportedOperationException JavaDoc("immutable attributes");
37     }
38
39     public void removeAttribute(int index) {
40         throw new UnsupportedOperationException JavaDoc("immutable attributes");
41     }
42
43     public void setLocalName(int index, String JavaDoc localName) {
44         throw new UnsupportedOperationException JavaDoc("immutable attributes");
45     }
46
47     public void setQName(int index, String JavaDoc qName) {
48         throw new UnsupportedOperationException JavaDoc("immutable attributes");
49     }
50
51     public void setType(int index, String JavaDoc type) {
52         throw new UnsupportedOperationException JavaDoc("immutable attributes");
53     }
54
55     public void setURI(int index, String JavaDoc uri) {
56         throw new UnsupportedOperationException JavaDoc("immutable attributes");
57     }
58
59     public void setValue(int index, String JavaDoc value) {
60         throw new UnsupportedOperationException JavaDoc("immutable attributes");
61     }
62
63     public void setAttributes(Attributes JavaDoc atts) {
64         throw new UnsupportedOperationException JavaDoc("immutable attributes");
65     }
66
67     public void setAttribute(int index, String JavaDoc uri, String JavaDoc localName, String JavaDoc qName, String JavaDoc type, String JavaDoc value) {
68         throw new UnsupportedOperationException JavaDoc("immutable attributes");
69     }
70
71     public void addAttribute(String JavaDoc uri, String JavaDoc localName, String JavaDoc qName, String JavaDoc type, String JavaDoc value) {
72         throw new UnsupportedOperationException JavaDoc("immutable attributes");
73     }
74 }
75
Popular Tags