Mercurial > dive4elements > gnv-client
view gnv-artifacts/src/main/java/de/intevation/gnv/state/describedata/DefaultKeyValueDescribeData.java @ 797:9d2891068ba5
Fixed test mockups to let them implement their interface correctly.
gnv-artifacts/trunk@879 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 06 Apr 2010 07:01:03 +0000 |
parents | c4156275c1e1 |
children | d05b17a4f3d0 |
line wrap: on
line source
package de.intevation.gnv.state.describedata; /** * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> * */ public class DefaultKeyValueDescribeData implements KeyValueDescibeData { /** * */ private static final long serialVersionUID = -924469415242703108L; private String key; private String value = null; private String state; private boolean selected = false; public DefaultKeyValueDescribeData(String key, String value) { this(key, value, null); } public DefaultKeyValueDescribeData(String key, String value, String state) { super(); this.key = key; this.value = value; this.state = state; } /** * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getKey() */ public String getKey() { return this.key; } /** * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getValue() */ public String getValue() { return this.value; } /** * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#isSelected() */ public boolean isSelected() { return this.selected; } /** * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#setSelected(boolean) */ public void setSelected(boolean selected) { this.selected = selected; } public String getState() { return this.state; } }