Mercurial > dive4elements > river
comparison flys-client/src/main/java/org/dive4elements/river/client/shared/model/MapConfig.java @ 5834:f507086aa94b
Repaired internal references.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:31:32 +0200 |
parents | flys-client/src/main/java/de/intevation/flys/client/shared/model/MapConfig.java@28eb4dfe2cbf |
children | 821a02bbfb4e |
comparison
equal
deleted
inserted
replaced
5833:a2bdc0f524e8 | 5834:f507086aa94b |
---|---|
1 package de.intevation.flys.client.shared.model; | |
2 | |
3 import java.io.Serializable; | |
4 import java.util.HashMap; | |
5 import java.util.Map; | |
6 | |
7 | |
8 public class MapConfig implements Serializable { | |
9 | |
10 public static final String ATTR_SRID = "srid"; | |
11 public static final String ATTR_MAX_EXTENT = "max_extent"; | |
12 public static final String ATTR_INITIAL_EXTENT = "initial_extent"; | |
13 | |
14 | |
15 protected Map<String, String> attributes; | |
16 | |
17 | |
18 public MapConfig() { | |
19 attributes = new HashMap<String, String>(); | |
20 } | |
21 | |
22 | |
23 public void setAttribute(String key, String value) { | |
24 attributes.put(key, value); | |
25 } | |
26 | |
27 | |
28 public String getAttribute(String key) { | |
29 return attributes.get(key); | |
30 } | |
31 | |
32 | |
33 public void setSrid(String srid) { | |
34 setAttribute(ATTR_SRID, srid); | |
35 } | |
36 | |
37 | |
38 public String getSrid() { | |
39 return getAttribute(ATTR_SRID); | |
40 } | |
41 | |
42 | |
43 public void setMaxExtent(String maxExtent) { | |
44 setAttribute(ATTR_MAX_EXTENT, maxExtent); | |
45 } | |
46 | |
47 | |
48 public String getMaxExtent() { | |
49 return getAttribute(ATTR_MAX_EXTENT); | |
50 } | |
51 | |
52 | |
53 public void setInitialExtent(String initialExtent) { | |
54 setAttribute(ATTR_INITIAL_EXTENT, initialExtent); | |
55 } | |
56 | |
57 | |
58 public String getInitialExtent() { | |
59 return getAttribute(ATTR_INITIAL_EXTENT); | |
60 } | |
61 } | |
62 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |