Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultMinMaxDescribeData.java @ 335:e964a3d8f7bc
Some Refactoring work done.
Moved Transition to State
gnv-artifacts/trunk@401 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Tim Englich <tim.englich@intevation.de> |
---|---|
date | Tue, 08 Dec 2009 08:39:03 +0000 |
parents | |
children | a6a33ef35809 |
comparison
equal
deleted
inserted
replaced
334:e37930705daa | 335:e964a3d8f7bc |
---|---|
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 final static String minName = "minvalue"; | |
24 | |
25 private final static String maxName = "maxvalue"; | |
26 | |
27 /** | |
28 * Constructor | |
29 */ | |
30 public DefaultMinMaxDescribeData(String name, Object minValue, Object maxValue) { | |
31 super(); | |
32 this.name = name; | |
33 this.minValue = minValue; | |
34 this.maxValue = maxValue; | |
35 } | |
36 | |
37 /** | |
38 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMaxValue() | |
39 */ | |
40 public Object getMaxValue() { | |
41 return this.maxValue; | |
42 } | |
43 | |
44 /** | |
45 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMinValue() | |
46 */ | |
47 public Object getMinValue() { | |
48 return this.minValue; | |
49 } | |
50 | |
51 /** | |
52 * @see java.lang.Object#toString() | |
53 */ | |
54 @Override | |
55 public String toString() { | |
56 return "MIN: " + this.minValue.toString() + " ; MAX: " | |
57 + this.maxValue.toString(); | |
58 } | |
59 | |
60 /** | |
61 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getName() | |
62 */ | |
63 public String getMinName() { | |
64 return minName; | |
65 } | |
66 | |
67 /** | |
68 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMaxName() | |
69 */ | |
70 public String getMaxName() { | |
71 return maxName; | |
72 } | |
73 | |
74 /** | |
75 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#setMaxValue(java.lang.Object) | |
76 */ | |
77 public void setMaxValue(Object maxValue) { | |
78 this.maxValue = maxValue; | |
79 } | |
80 | |
81 /** | |
82 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#setMinValue(java.lang.Object) | |
83 */ | |
84 public void setMinValue(Object minValue) { | |
85 this.minValue = minValue; | |
86 } | |
87 | |
88 public String getName() { | |
89 return this.name; | |
90 } | |
91 | |
92 } |