tim@61: /** tim@61: * tim@61: */ tim@61: package de.intevation.gnv.transition.describedata; tim@171: tim@61: /** tim@61: * @author Tim Englich tim@171: * tim@61: */ tim@61: public class DefaultMinMaxDescribeData implements MinMaxDescribeData { tim@61: tim@77: /** tim@77: * tim@77: */ tim@77: private static final long serialVersionUID = -2917176219029052295L; tim@77: tim@61: private Object minValue = null; tim@171: tim@61: private Object maxValue = null; tim@171: tim@79: private String minName = null; tim@171: tim@79: private String maxName = null; tim@171: tim@61: /** tim@61: * Constructor tim@61: */ tim@171: public DefaultMinMaxDescribeData(String minName, String maxName, tim@171: Object minValue, Object maxValue) { tim@61: super(); tim@79: this.minName = minName; tim@79: this.maxName = maxName; tim@61: this.minValue = minValue; tim@61: this.maxValue = maxValue; tim@61: } tim@61: tim@61: /** tim@61: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxValue() tim@61: */ tim@61: public Object getMaxValue() { tim@61: return this.maxValue; tim@61: } tim@61: tim@61: /** tim@61: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMinValue() tim@61: */ tim@61: public Object getMinValue() { tim@61: return this.minValue; tim@61: } tim@61: tim@61: /** tim@61: * @see java.lang.Object#toString() tim@61: */ tim@61: @Override tim@61: public String toString() { tim@171: return "MIN: " + this.minValue.toString() + " ; MAX: " tim@171: + this.maxValue.toString(); tim@61: } tim@79: tim@79: /** tim@79: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getName() tim@79: */ tim@79: public String getMinName() { tim@79: return this.minName; tim@79: } tim@79: tim@79: /** tim@79: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#getMaxName() tim@79: */ tim@79: public String getMaxName() { tim@79: return this.maxName; tim@79: } tim@79: tim@79: /** tim@79: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMaxValue(java.lang.Object) tim@79: */ tim@79: public void setMaxValue(Object maxValue) { tim@79: this.maxValue = maxValue; tim@79: } tim@79: tim@79: /** tim@79: * @see de.intevation.gnv.transition.describedata.MinMaxDescribeData#setMinValue(java.lang.Object) tim@79: */ tim@79: public void setMinValue(Object minValue) { tim@79: this.minValue = minValue; tim@79: } tim@61: tim@61: }