Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/BooleanProperty.java @ 5220:613d2f494728
Handle return codes in the make_flys_release script
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 11 Mar 2013 15:55:11 +0100 |
parents | c21d14e48040 |
children |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.util.HashMap; /** * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> */ public class BooleanProperty extends PropertySetting { /** * Create a new BooleanProperty for settings. */ public BooleanProperty() { this.attributes = new HashMap<String, String>(); } /** * Create a new BooleanProperty. * @param name The attribute name. * @param value The current value. */ public BooleanProperty( String name, Boolean value) { this.name = name; this.value = value.toString(); this.attributes = new HashMap<String, String>(); } @Override public Boolean getValue() { return Boolean.valueOf(this.value); } public void setValue(Boolean value) { this.value = value.toString(); } public Object clone() { BooleanProperty clone = new BooleanProperty(this.getName(), this.getValue()); for(String s: this.getAttributeList()) { clone.setAttribute(s, this.getAttribute(s)); } return clone; } }