01: /*
02: * Geotools2 - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2005-2006, GeoTools Project Managment Committee (PMC)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation;
09: * version 2.1 of the License.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: */
17: package org.geotools.data.complex.config;
18:
19: import java.io.Serializable;
20: import java.util.Collections;
21: import java.util.HashMap;
22: import java.util.Map;
23:
24: import org.geotools.util.CheckedHashMap;
25:
26: /**
27: *
28: * @author Gabriel Roldan, Axios Engineering
29: * @version $Id: SourceDataStore.java 25814 2007-06-12 12:03:41Z groldan $
30: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/unsupported/community-schemas/community-schema-ds/src/main/java/org/geotools/data/complex/config/SourceDataStore.java $
31: * @since 2.4
32: */
33: public class SourceDataStore implements Serializable {
34: private static final long serialVersionUID = 8540617713675342340L;
35: private String id;
36: private Map params = Collections.EMPTY_MAP;
37:
38: public String getId() {
39: return id;
40: }
41:
42: public void setId(String id) {
43: this .id = id;
44: }
45:
46: public Map getParams() {
47: return new HashMap(params);
48: }
49:
50: public void setParams(Map params) {
51: this .params = new CheckedHashMap(Serializable.class,
52: Serializable.class);
53: if (params != null) {
54: this.params.putAll(params);
55: }
56: }
57: }
|