comparison flys-client/src/main/java/org/dive4elements/river/client/shared/model/StringProperty.java @ 5834:f507086aa94b

Repaired internal references.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 12:31:32 +0200
parents flys-client/src/main/java/de/intevation/flys/client/shared/model/StringProperty.java@bb5edff31866
children 821a02bbfb4e
comparison
equal deleted inserted replaced
5833:a2bdc0f524e8 5834:f507086aa94b
1 package de.intevation.flys.client.shared.model;
2
3 import java.util.HashMap;
4
5 /**
6 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
7 */
8 public class StringProperty extends PropertySetting {
9
10 /**
11 * Create a new StringProperty for settings.
12 */
13 public StringProperty() {
14 this.attributes = new HashMap<String, String>();
15 }
16
17
18 /**
19 * Create a new StringProperty.
20 * @param name The attribute name.
21 * @param value The current value.
22 */
23 public StringProperty(
24 String name,
25 String value)
26 {
27 this.name = name;
28 this.value = value;
29 this.attributes = new HashMap<String, String>();
30 }
31
32
33 @Override
34 public String getValue() {
35 return this.value;
36 }
37
38
39 public Object clone() {
40 StringProperty clone = new StringProperty(this.getName(),
41 this.getValue());
42 for(String s: this.getAttributeList()) {
43 clone.setAttribute(s, this.getAttribute(s));
44 }
45 return clone;
46 }
47 }
48 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :
49

http://dive4elements.wald.intevation.org