comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/BooleanProperty.java @ 1507:c21d14e48040

Improved validation and property handling. flys-client/trunk@3645 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 11 Jan 2012 10:21:22 +0000
parents 3304608baf35
children
comparison
equal deleted inserted replaced
1506:339f8aa641b5 1507:c21d14e48040
20 * @param name The attribute name. 20 * @param name The attribute name.
21 * @param value The current value. 21 * @param value The current value.
22 */ 22 */
23 public BooleanProperty( 23 public BooleanProperty(
24 String name, 24 String name,
25 String value) 25 Boolean value)
26 { 26 {
27 this.name = name; 27 this.name = name;
28 this.value = value; 28 this.value = value.toString();
29 this.attributes = new HashMap<String, String>(); 29 this.attributes = new HashMap<String, String>();
30 }
31
32
33 @Override
34 public Boolean getValue() {
35 return Boolean.valueOf(this.value);
36 }
37
38
39 public void setValue(Boolean value) {
40 this.value = value.toString();
30 } 41 }
31 42
32 43
33 public Object clone() { 44 public Object clone() {
34 BooleanProperty clone = new BooleanProperty(this.getName(), 45 BooleanProperty clone = new BooleanProperty(this.getName(),

http://dive4elements.wald.intevation.org