comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/PropertySetting.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 62332fa199bf
comparison
equal deleted inserted replaced
1506:339f8aa641b5 1507:c21d14e48040
53 53
54 public String getName() { 54 public String getName() {
55 return this.name; 55 return this.name;
56 } 56 }
57 57
58 public String getValue() { 58 public Object getValue() {
59 return this.value; 59 return this.value;
60 } 60 }
61 61
62 public String getAttribute(String key) { 62 public String getAttribute(String key) {
63 return attributes.get(key); 63 return attributes.get(key);
68 } 68 }
69 69
70 70
71 public Object clone() { 71 public Object clone() {
72 PropertySetting clone = new PropertySetting(this.getName(), 72 PropertySetting clone = new PropertySetting(this.getName(),
73 this.getValue()); 73 this.getValue().toString());
74 for(String s: this.getAttributeList()) { 74 for(String s: this.getAttributeList()) {
75 clone.setAttribute(s, this.getAttribute(s)); 75 clone.setAttribute(s, this.getAttribute(s));
76 } 76 }
77 return clone; 77 return clone;
78 } 78 }

http://dive4elements.wald.intevation.org