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