comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/ExtendedKeyValueData.java @ 875:5e9efdda6894

merged gnv-artifacts/1.0
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:56 +0200
parents 2423cefe7d39
children f953c9a559d8
comparison
equal deleted inserted replaced
722:bb3ffe7d719e 875:5e9efdda6894
1 package de.intevation.gnv.state.describedata;
2
3 import org.apache.log4j.Logger;
4
5 /**
6 * This implementation improves the <code>DefaultKeyValueDescribeData</code> and
7 * establishes another field to store a further parameter.
8 *
9 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
10 */
11 public class ExtendedKeyValueData
12 extends DefaultKeyValueDescribeData
13 {
14 private static Logger logger = Logger.getLogger(ExtendedKeyValueData.class);
15
16 /**
17 * A further parameter to be stored at this object.
18 */
19 protected String parameter;
20
21 /**
22 * Default constructor to initialize new objects.
23 *
24 * @param key The key.
25 * @param value The value.
26 * @param state The state - null permitted.
27 * @param parameter A further value.
28 */
29 public ExtendedKeyValueData(
30 String key, String value, String state, String parameter)
31 {
32 super(key, value, state);
33 this.parameter = parameter;
34 }
35
36 /**
37 * Returns the parameter.
38 *
39 * @return the parameter.
40 */
41 public String getParameter() {
42 return parameter;
43 }
44 }
45 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org