tim@335: package de.intevation.gnv.state.describedata; tim@335: tim@335: /** sascha@780: * @author Tim Englich sascha@778: * tim@335: */ tim@335: public class DefaultKeyValueDescribeData implements KeyValueDescibeData { tim@335: tim@335: /** tim@335: * tim@335: */ tim@335: private static final long serialVersionUID = -924469415242703108L; tim@335: tim@335: private String key; tim@335: tim@335: private String value = null; tim@335: ingo@473: private String state; ingo@473: tim@335: private boolean selected = false; tim@335: tim@335: public DefaultKeyValueDescribeData(String key, String value) { ingo@473: this(key, value, null); ingo@473: } ingo@473: ingo@473: public DefaultKeyValueDescribeData(String key, String value, String state) { tim@335: super(); tim@335: this.key = key; tim@335: this.value = value; ingo@473: this.state = state; tim@335: } tim@335: tim@335: /** tim@335: * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getKey() tim@335: */ tim@335: public String getKey() { tim@335: return this.key; tim@335: } tim@335: tim@335: /** tim@335: * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#getValue() tim@335: */ tim@335: public String getValue() { tim@335: return this.value; tim@335: } tim@335: tim@335: /** tim@335: * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#isSelected() tim@335: */ tim@335: public boolean isSelected() { tim@335: return this.selected; tim@335: } tim@335: tim@335: /** tim@335: * @see de.intevation.gnv.state.describedata.KeyValueDescibeData#setSelected(boolean) tim@335: */ tim@335: public void setSelected(boolean selected) { tim@335: this.selected = selected; tim@335: } tim@335: ingo@473: ingo@473: public String getState() { ingo@473: return this.state; ingo@473: } ingo@473: tim@335: }