tim@335: package de.intevation.gnv.state.describedata; tim@335: tim@335: /** ingo@809: * This is the default implementation of SingleValueDescribeData. ingo@809: * This object is used to store a single value for a specific name. ingo@809: * sascha@780: * @author Tim Englich tim@335: */ tim@335: public class DefaultSingleValueDescribeData implements SingleValueDescribeData { tim@335: tim@335: private static final long serialVersionUID = 3580176842483316917L; tim@335: tim@335: private String name = null; tim@335: tim@335: private String value = null; tim@335: ingo@473: private String state = null; ingo@473: ingo@809: /** ingo@809: * Constructor to create new objects without a specific state. ingo@809: * ingo@809: * @param name The name of this object. ingo@809: * @param value The value of this object. ingo@809: */ ingo@473: public DefaultSingleValueDescribeData(String name, String value) { ingo@473: this(name, value, null); ingo@473: } ingo@473: tim@335: /** ingo@809: * Constructor to create new objects with a specific state. sascha@778: * ingo@809: * @param name The name of this object. ingo@809: * @param value The value of this object. ingo@809: * @param state The state this object belongs to. tim@335: */ ingo@473: public DefaultSingleValueDescribeData( ingo@473: String name, ingo@473: String value, ingo@473: String state ingo@473: ) { tim@335: super(); tim@335: this.name = name; tim@335: this.value = value; ingo@473: this.state = state; tim@335: } tim@335: tim@335: public String getName() { tim@335: return this.name; tim@335: } tim@335: tim@335: public String getValue() { tim@335: return this.value; tim@335: } tim@335: tim@335: public void setValue(String value) { tim@335: this.value = value; tim@335: } tim@335: ingo@473: public String getState() { ingo@473: return this.state; ingo@473: } tim@335: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :