Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultMinMaxDescribeData.java @ 809:d05b17a4f3d0
Added javadoc in describedata package.
gnv-artifacts/trunk@891 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Fri, 09 Apr 2010 07:27:38 +0000 |
parents | c4156275c1e1 |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
808:2e951160c43d | 809:d05b17a4f3d0 |
---|---|
1 package de.intevation.gnv.state.describedata; | 1 package de.intevation.gnv.state.describedata; |
2 | 2 |
3 /** | 3 /** |
4 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | 4 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> |
5 * | |
6 */ | 5 */ |
7 public class DefaultMinMaxDescribeData implements MinMaxDescribeData { | 6 public class DefaultMinMaxDescribeData implements MinMaxDescribeData { |
8 | 7 |
9 /** | |
10 * | |
11 */ | |
12 private static final long serialVersionUID = -2917176219029052295L; | 8 private static final long serialVersionUID = -2917176219029052295L; |
13 | 9 |
14 private Object minValue = null; | 10 private Object minValue = null; |
15 | 11 |
16 private Object maxValue = null; | 12 private Object maxValue = null; |
22 private final static String minName = "minvalue"; | 18 private final static String minName = "minvalue"; |
23 | 19 |
24 private final static String maxName = "maxvalue"; | 20 private final static String maxName = "maxvalue"; |
25 | 21 |
26 /** | 22 /** |
27 * Constructor | 23 * The default constructor. |
24 * | |
25 * @param name A general name for this object. | |
26 * @param minValue The min value. | |
27 * @param maxValue The max value. | |
28 * @param state The state. | |
28 */ | 29 */ |
29 public DefaultMinMaxDescribeData( | 30 public DefaultMinMaxDescribeData( |
30 String name, | 31 String name, |
31 Object minValue, | 32 Object minValue, |
32 Object maxValue, | 33 Object maxValue, |
37 this.minValue = minValue; | 38 this.minValue = minValue; |
38 this.maxValue = maxValue; | 39 this.maxValue = maxValue; |
39 this.state = state; | 40 this.state = state; |
40 } | 41 } |
41 | 42 |
42 /** | |
43 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMaxValue() | |
44 */ | |
45 public Object getMaxValue() { | 43 public Object getMaxValue() { |
46 return this.maxValue; | 44 return this.maxValue; |
47 } | 45 } |
48 | 46 |
49 /** | |
50 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMinValue() | |
51 */ | |
52 public Object getMinValue() { | 47 public Object getMinValue() { |
53 return this.minValue; | 48 return this.minValue; |
54 } | 49 } |
55 | 50 |
56 /** | 51 /** |
57 * @see java.lang.Object#toString() | 52 * Returns the string representation of this object. |
53 * | |
54 * @return this object as string. | |
58 */ | 55 */ |
59 @Override | 56 @Override |
60 public String toString() { | 57 public String toString() { |
61 return "MIN: " + this.minValue.toString() + " ; MAX: " | 58 return "MIN: " + this.minValue.toString() + " ; MAX: " |
62 + this.maxValue.toString(); | 59 + this.maxValue.toString(); |
63 } | 60 } |
64 | 61 |
65 /** | |
66 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getName() | |
67 */ | |
68 public String getMinName() { | 62 public String getMinName() { |
69 return minName; | 63 return minName; |
70 } | 64 } |
71 | 65 |
72 /** | |
73 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#getMaxName() | |
74 */ | |
75 public String getMaxName() { | 66 public String getMaxName() { |
76 return maxName; | 67 return maxName; |
77 } | 68 } |
78 | 69 |
79 /** | |
80 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#setMaxValue(java.lang.Object) | |
81 */ | |
82 public void setMaxValue(Object maxValue) { | 70 public void setMaxValue(Object maxValue) { |
83 this.maxValue = maxValue; | 71 this.maxValue = maxValue; |
84 } | 72 } |
85 | 73 |
86 /** | |
87 * @see de.intevation.gnv.state.describedata.MinMaxDescribeData#setMinValue(java.lang.Object) | |
88 */ | |
89 public void setMinValue(Object minValue) { | 74 public void setMinValue(Object minValue) { |
90 this.minValue = minValue; | 75 this.minValue = minValue; |
91 } | 76 } |
92 | 77 |
93 public String getName() { | 78 public String getName() { |
95 } | 80 } |
96 | 81 |
97 public String getState() { | 82 public String getState() { |
98 return this.state; | 83 return this.state; |
99 } | 84 } |
100 | |
101 } | 85 } |
86 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |