Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/src/main/java/de/intevation/gnv/transition/describedata/DefaultMinMaxDescribeData.java @ 280:72f5e8bd2791 0.2
merged geo-backend/0.2
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:45 +0200 |
parents | 4e8f0fd8ed79 |
children |
rev | line source |
---|---|
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
1 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
2 * |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
3 */ |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
4 package de.intevation.gnv.transition.describedata; |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
5 |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
6 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
7 * @author Tim Englich <tim.englich@intevation.de> |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
8 * |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
9 */ |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
10 public class DefaultMinMaxDescribeData implements MinMaxDescribeData { |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
11 |
77
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
61
diff
changeset
|
12 /** |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
61
diff
changeset
|
13 * |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
61
diff
changeset
|
14 */ |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
61
diff
changeset
|
15 private static final long serialVersionUID = -2917176219029052295L; |
0e38f512f7e4
Some improvements an bugfixes done
Tim Englich <tim.englich@intevation.de>
parents:
61
diff
changeset
|
16 |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
17 private Object minValue = null; |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
18 |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
19 private Object maxValue = null; |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
20 |
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
21 private String name = null; |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
22 |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
23 private final static String minName = "minvalue"; |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
24 |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
25 private final static String maxName = "maxvalue"; |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
26 |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
27 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
28 * Constructor |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
29 */ |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
30 public DefaultMinMaxDescribeData(String name, Object minValue, Object maxValue) { |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
31 super(); |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
32 this.name = name; |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
33 this.minValue = minValue; |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
34 this.maxValue = maxValue; |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
35 } |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
36 |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
37 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
38 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxValue() |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
39 */ |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
40 public Object getMaxValue() { |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
41 return this.maxValue; |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
42 } |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
43 |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
44 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
45 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMinValue() |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
46 */ |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
47 public Object getMinValue() { |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
48 return this.minValue; |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
49 } |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
50 |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
51 /** |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
52 * @see java.lang.Object#toString() |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
53 */ |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
54 @Override |
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
55 public String toString() { |
171
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
56 return "MIN: " + this.minValue.toString() + " ; MAX: " |
7fb9441dd8af
Format Code to max 80 Chars per Row and Cleanup
Tim Englich <tim.englich@intevation.de>
parents:
79
diff
changeset
|
57 + this.maxValue.toString(); |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
58 } |
79
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
59 |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
60 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
61 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getName() |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
62 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
63 public String getMinName() { |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
64 return minName; |
79
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
65 } |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
66 |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
67 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
68 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxName() |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
69 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
70 public String getMaxName() { |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
71 return maxName; |
79
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
72 } |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
73 |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
74 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
75 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMaxValue(java.lang.Object) |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
76 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
77 public void setMaxValue(Object maxValue) { |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
78 this.maxValue = maxValue; |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
79 } |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
80 |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
81 /** |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
82 * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMinValue(java.lang.Object) |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
83 */ |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
84 public void setMinValue(Object minValue) { |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
85 this.minValue = minValue; |
e33c61735a4e
Implementation of the Static UI done
Tim Englich <tim.englich@intevation.de>
parents:
77
diff
changeset
|
86 } |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
87 |
250
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
88 public String getName() { |
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
89 return this.name; |
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
90 } |
4e8f0fd8ed79
BugFix: Storage of "feeded" MinMaxValues will now work. issue79
Tim Englich <tim.englich@intevation.de>
parents:
171
diff
changeset
|
91 |
61
5f47881f7c97
Implementation of the MIN- / MAX-Value Representation
Tim Englich <tim.englich@intevation.de>
parents:
diff
changeset
|
92 } |