KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > cocoon > portal > coplet > CopletBaseData


1 /*
2  * Copyright 1999-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 package org.apache.cocoon.portal.coplet;
17
18 import java.util.HashMap JavaDoc;
19 import java.util.Map JavaDoc;
20
21 /**
22  *
23  * @author <a HREF="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
24  * @author <a HREF="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
25  * @author <a HREF="mailto:bluetkemeier@s-und-n.de">Bj&ouml;rn L&uuml;tkemeier</a>
26  *
27  * @version CVS $Id: CopletBaseData.java 37245 2004-08-31 08:29:58Z cziegeler $
28  */

29 public final class CopletBaseData {
30
31     private Map JavaDoc copletConfig = new HashMap JavaDoc();
32
33     private String JavaDoc id;
34
35     private String JavaDoc copletAdapterName;
36
37     public CopletBaseData() {
38         // Nothing to do
39
}
40
41     public String JavaDoc getId() {
42         return id;
43     }
44
45     public void setId(String JavaDoc name) {
46         this.id = name;
47     }
48
49     public String JavaDoc getCopletAdapterName() {
50         return this.copletAdapterName;
51     }
52
53     public Object JavaDoc getCopletConfig(String JavaDoc key) {
54         return this.copletConfig.get(key);
55     }
56
57     public void setCopletConfig(String JavaDoc key, Object JavaDoc value) {
58         this.copletConfig.put(key, value);
59     }
60
61     public Map JavaDoc getCopletConfig() {
62         return this.copletConfig;
63     }
64
65     public void setCopletConfig(Map JavaDoc config) {
66         this.copletConfig = config;
67     }
68
69     public void setCopletAdapterName(String JavaDoc name) {
70         this.copletAdapterName = name;
71     }
72 }
73
Popular Tags