Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultMinMaxDescribeData.java @ 127:f6f0e4ce4a35
merged gnv-artifacts/0.1
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:41 +0200 |
parents | e33c61735a4e |
children | 7fb9441dd8af |
comparison
equal
deleted
inserted
replaced
49:94a07d1d9316 | 127:f6f0e4ce4a35 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.transition.describedata; | |
5 /** | |
6 * @author Tim Englich <tim.englich@intevation.de> | |
7 * | |
8 */ | |
9 public class DefaultMinMaxDescribeData implements MinMaxDescribeData { | |
10 | |
11 /** | |
12 * | |
13 */ | |
14 private static final long serialVersionUID = -2917176219029052295L; | |
15 | |
16 private Object minValue = null; | |
17 | |
18 private Object maxValue = null; | |
19 | |
20 private String minName = null; | |
21 | |
22 private String maxName = null; | |
23 /** | |
24 * Constructor | |
25 */ | |
26 public DefaultMinMaxDescribeData(String minName, String maxName, Object minValue, Object maxValue) { | |
27 super(); | |
28 this.minName = minName; | |
29 this.maxName = maxName; | |
30 this.minValue = minValue; | |
31 this.maxValue = maxValue; | |
32 } | |
33 | |
34 /** | |
35 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxValue() | |
36 */ | |
37 public Object getMaxValue() { | |
38 return this.maxValue; | |
39 } | |
40 | |
41 /** | |
42 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMinValue() | |
43 */ | |
44 public Object getMinValue() { | |
45 return this.minValue; | |
46 } | |
47 | |
48 /** | |
49 * @see java.lang.Object#toString() | |
50 */ | |
51 @Override | |
52 public String toString() { | |
53 return "MIN: "+this.minValue.toString()+" ; MAX: "+this.maxValue.toString(); | |
54 } | |
55 | |
56 /** | |
57 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getName() | |
58 */ | |
59 public String getMinName() { | |
60 return this.minName; | |
61 } | |
62 | |
63 /** | |
64 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxName() | |
65 */ | |
66 public String getMaxName() { | |
67 return this.maxName; | |
68 } | |
69 | |
70 /** | |
71 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMaxValue(java.lang.Object) | |
72 */ | |
73 public void setMaxValue(Object maxValue) { | |
74 this.maxValue = maxValue; | |
75 } | |
76 | |
77 /** | |
78 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMinValue(java.lang.Object) | |
79 */ | |
80 public void setMinValue(Object minValue) { | |
81 this.minValue = minValue; | |
82 } | |
83 | |
84 | |
85 } |