KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > enterprise > admin > event > ConfigChangeList


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /**
25  * PROPRIETARY/CONFIDENTIAL. Use of this product is subject to license terms.
26  *
27  * Copyright 2001-2002 by iPlanet/Sun Microsystems, Inc.,
28  * 901 San Antonio Road, Palo Alto, California, 94303, U.S.A.
29  * All rights reserved.
30  */

31 package com.sun.enterprise.admin.event;
32
33 import java.io.Serializable JavaDoc;
34 import java.util.HashMap JavaDoc;
35 import java.util.SortedMap JavaDoc;
36 import java.util.Vector JavaDoc;
37
38 /**
39  * List of configuration changes. A user interface feature allows users to
40  * apply changes after one or more edits to configuration attributes. This
41  * class keeps track of configuration changes.
42  */

43 public class ConfigChangeList implements SortedMap JavaDoc, Serializable JavaDoc {
44
45     private Vector JavaDoc names;
46     private Vector JavaDoc values;
47     private HashMap JavaDoc nameMap;
48
49     /**
50      * Create an empty ConfigChangeList.
51      */

52     public ConfigChangeList() {
53         names = new Vector JavaDoc();
54         values = new Vector JavaDoc();
55         nameMap = new HashMap JavaDoc();
56     }
57
58     private ConfigChangeList(Vector JavaDoc names, Vector JavaDoc values, HashMap JavaDoc nameMap) {
59         this.names = names;
60         this.values = values;
61         this.nameMap = nameMap;
62     }
63
64     /**
65      * Add a config change to list. If a config change for the same property
66      * already exists, then the specified change value is added to the end of
67      * the list of changes. The name is the XPath of the attribute for which
68      * change is being addeed.
69      */

70     public void addConfigChange(String JavaDoc name, Object JavaDoc value) {
71     }
72
73     /**
74      * Remove all config changes for the specified name from the list. The name
75      * is the XPath of the attribute that needs to be removed.
76      */

77     public void removeConfigChange(String JavaDoc name) {
78     }
79  
80     /**
81      * Remove specified config change from the list.
82      */

83     public void removeConfigChange(String JavaDoc name, Object JavaDoc value) {
84     }
85
86     public java.util.SortedMap JavaDoc tailMap(java.lang.Object JavaDoc obj) {
87         return null;
88     }
89     
90     public java.lang.Object JavaDoc firstKey() {
91         return null;
92     }
93     
94     public java.lang.Object JavaDoc put(java.lang.Object JavaDoc obj, java.lang.Object JavaDoc obj1) {
95         return null;
96     }
97     
98     public java.lang.Object JavaDoc remove(java.lang.Object JavaDoc obj) {
99         return null;
100     }
101     
102     public java.util.Set JavaDoc keySet() {
103         return null;
104     }
105     
106     public void clear() {
107     }
108     
109     public java.util.Collection JavaDoc values() {
110         return null;
111     }
112     
113     public java.util.SortedMap JavaDoc subMap(java.lang.Object JavaDoc obj, java.lang.Object JavaDoc obj1) {
114         return null;
115     }
116     
117     public boolean containsKey(java.lang.Object JavaDoc obj) {
118         return false;
119     }
120     
121     public int size() {
122         return 0;
123     }
124     
125     public java.util.Set JavaDoc entrySet() {
126         return null;
127     }
128     
129     public java.util.SortedMap JavaDoc headMap(java.lang.Object JavaDoc obj) {
130         return null;
131     }
132     
133     public boolean containsValue(java.lang.Object JavaDoc obj) {
134         return false;
135     }
136     
137     public void putAll(java.util.Map JavaDoc map) {
138     }
139     
140     public boolean isEmpty() {
141         return true;
142     }
143     
144     public java.lang.Object JavaDoc get(java.lang.Object JavaDoc obj) {
145         return null;
146     }
147     
148     public java.util.Comparator JavaDoc comparator() {
149         return null;
150     }
151     
152     public java.lang.Object JavaDoc lastKey() {
153         return null;
154     }
155     
156 }
157
Popular Tags