comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/StringProperty.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/shared/model/StringProperty.java@821a02bbfb4e
children 172338b1407f
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.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