01: /*
02: * Licensed to the Apache Software Foundation (ASF) under one or more
03: * contributor license agreements. See the NOTICE file distributed with
04: * this work for additional information regarding copyright ownership.
05: * The ASF licenses this file to You under the Apache License, Version 2.0
06: * (the "License"); you may not use this file except in compliance with
07: * the License. You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17: package org.apache.cocoon.portal.coplet;
18:
19: import java.util.HashMap;
20: import java.util.Map;
21:
22: /**
23: *
24: * @author <a href="mailto:cziegeler@s-und-n.de">Carsten Ziegeler</a>
25: * @author <a href="mailto:volker.schmitt@basf-it-services.com">Volker Schmitt</a>
26: * @author <a href="mailto:bluetkemeier@s-und-n.de">Björn Lütkemeier</a>
27: *
28: * @version CVS $Id: CopletBaseData.java 603311 2007-12-11 17:24:31Z cziegeler $
29: */
30: public final class CopletBaseData {
31:
32: private Map copletConfig = new HashMap(3);
33:
34: private String id;
35:
36: private String copletAdapterName;
37:
38: public CopletBaseData() {
39: // Nothing to do
40: }
41:
42: public String getId() {
43: return id;
44: }
45:
46: public void setId(String name) {
47: this .id = name;
48: }
49:
50: public String getCopletAdapterName() {
51: return this .copletAdapterName;
52: }
53:
54: public Object getCopletConfig(String key) {
55: return this .copletConfig.get(key);
56: }
57:
58: public void setCopletConfig(String key, Object value) {
59: this .copletConfig.put(key, value);
60: }
61:
62: public Map getCopletConfig() {
63: return this .copletConfig;
64: }
65:
66: public void setCopletConfig(Map config) {
67: this .copletConfig = config;
68: }
69:
70: public void setCopletAdapterName(String name) {
71: this.copletAdapterName = name;
72: }
73: }
|