ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: tim@335: package de.intevation.gnv.state.describedata; tim@335: tim@335: /** sascha@780: * @author Tim Englich tim@335: */ tim@335: public class DefaultMinMaxDescribeData implements MinMaxDescribeData { tim@335: tim@335: private static final long serialVersionUID = -2917176219029052295L; tim@335: tim@335: private Object minValue = null; tim@335: tim@335: private Object maxValue = null; sascha@778: sascha@778: private String name = null; tim@335: ingo@473: private String state = null; ingo@473: tim@335: private final static String minName = "minvalue"; tim@335: tim@335: private final static String maxName = "maxvalue"; tim@335: tim@335: /** ingo@809: * The default constructor. ingo@809: * ingo@809: * @param name A general name for this object. ingo@809: * @param minValue The min value. ingo@809: * @param maxValue The max value. ingo@809: * @param state The state. tim@335: */ ingo@473: public DefaultMinMaxDescribeData( ingo@473: String name, ingo@473: Object minValue, ingo@473: Object maxValue, ingo@473: String state ingo@473: ) { tim@335: super(); tim@335: this.name = name; tim@335: this.minValue = minValue; tim@335: this.maxValue = maxValue; ingo@473: this.state = state; tim@335: } tim@335: tim@335: public Object getMaxValue() { tim@335: return this.maxValue; tim@335: } tim@335: tim@335: public Object getMinValue() { tim@335: return this.minValue; tim@335: } tim@335: tim@335: /** ingo@809: * Returns the string representation of this object. ingo@809: * ingo@809: * @return this object as string. tim@335: */ tim@335: @Override tim@335: public String toString() { tim@335: return "MIN: " + this.minValue.toString() + " ; MAX: " tim@335: + this.maxValue.toString(); tim@335: } tim@335: tim@335: public String getMinName() { tim@335: return minName; tim@335: } tim@335: tim@335: public String getMaxName() { tim@335: return maxName; tim@335: } tim@335: tim@335: public void setMaxValue(Object maxValue) { tim@335: this.maxValue = maxValue; tim@335: } tim@335: tim@335: public void setMinValue(Object minValue) { tim@335: this.minValue = minValue; tim@335: } tim@335: tim@335: public String getName() { tim@335: return this.name; 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 :