Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultInputData.java @ 815:22c18083225e
Removed compiler warnings while JavaDoc generation.
gnv-artifacts/trunk@900 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 12 Apr 2010 06:59:33 +0000 |
parents | feae2f9d6c6f |
children | 05bf8534a35a |
comparison
equal
deleted
inserted
replaced
814:9d427dd2a96a | 815:22c18083225e |
---|---|
48 protected Object object; | 48 protected Object object; |
49 | 49 |
50 | 50 |
51 /** | 51 /** |
52 * Constructor | 52 * Constructor |
53 * @param name | |
54 * @param value | |
55 */ | 53 */ |
56 public DefaultInputData(String name, String value) { | 54 public DefaultInputData(String name, String value) { |
57 this.name = name; | 55 this.name = name; |
58 this.value = value; | 56 this.value = value; |
59 } | 57 } |
60 | 58 |
61 /** | 59 |
62 * | |
63 * @param name | |
64 * @param object | |
65 */ | |
66 public DefaultInputData(String name, Object object) { | 60 public DefaultInputData(String name, Object object) { |
67 this.name = name; | 61 this.name = name; |
68 this.object = object; | 62 this.object = object; |
69 } | 63 } |
70 | 64 |
71 /** | 65 |
72 * | |
73 * @param name | |
74 * @param value | |
75 * @param object | |
76 */ | |
77 public DefaultInputData( | 66 public DefaultInputData( |
78 String name, | 67 String name, |
79 String value, | 68 String value, |
80 Object object) | 69 Object object) |
81 { | 70 { |
82 this.name = name; | 71 this.name = name; |
83 this.object = object; | 72 this.object = object; |
84 this.value = value; | 73 this.value = value; |
85 } | 74 } |
86 | 75 |
87 /** | 76 |
88 * @return | |
89 */ | |
90 public String getName() { | 77 public String getName() { |
91 return this.name; | 78 return this.name; |
92 } | 79 } |
93 | 80 |
94 /** | 81 |
95 * @return | |
96 */ | |
97 public String getValue() { | 82 public String getValue() { |
98 return this.value; | 83 return this.value; |
99 } | 84 } |
100 | 85 |
101 /** | 86 |
102 * | |
103 * @param object | |
104 */ | |
105 public void setObject(Object object) { | 87 public void setObject(Object object) { |
106 this.object = object; | 88 this.object = object; |
107 } | 89 } |
108 | 90 |
109 /** | 91 |
110 * | |
111 * @return | |
112 */ | |
113 public Object getObject() { | 92 public Object getObject() { |
114 return object; | 93 return object; |
115 } | 94 } |
116 | 95 |
117 /** | 96 /** |
141 } | 120 } |
142 | 121 |
143 return description; | 122 return description; |
144 } | 123 } |
145 | 124 |
146 /** | 125 |
147 * | |
148 * @param description | |
149 */ | |
150 public void setDescription(String[] description) { | 126 public void setDescription(String[] description) { |
151 if (this.description == null) | 127 if (this.description == null) |
152 this.description = new HashMap(); | 128 this.description = new HashMap(); |
153 | 129 |
154 String[] values = splitValue(); | 130 String[] values = splitValue(); |
164 break; | 140 break; |
165 } | 141 } |
166 } | 142 } |
167 } | 143 } |
168 | 144 |
169 /** | 145 |
170 * @return | |
171 */ | |
172 @Override | 146 @Override |
173 public String toString() { | 147 public String toString() { |
174 return this.name + "==> " + this.value; | 148 return this.name + "==> " + this.value; |
175 } | 149 } |
176 | 150 |
177 /** | 151 |
178 * @param value | |
179 */ | |
180 public void concartValue(String value) { | 152 public void concartValue(String value) { |
181 this.value = this.value + VALUE_SEPARATOR + value; | 153 this.value = this.value + VALUE_SEPARATOR + value; |
182 } | 154 } |
183 | 155 |
184 /** | 156 |
185 * @return | |
186 */ | |
187 public String[] splitValue() { | 157 public String[] splitValue() { |
188 if (this.value != null){ | 158 if (this.value != null){ |
189 return this.value.split(VALUE_SEPARATOR); | 159 return this.value.split(VALUE_SEPARATOR); |
190 } | 160 } |
191 return null; | 161 return null; |