tim@335: package de.intevation.gnv.state;
tim@335:
ingo@607: import de.intevation.artifactdatabase.XMLUtils;
ingo@607:
ingo@725: import de.intevation.artifacts.CallContext;
ingo@607: import de.intevation.artifacts.CallMeta;
ingo@607:
ingo@607: import de.intevation.gnv.artifacts.ressource.RessourceFactory;
ingo@607:
ingo@607: import de.intevation.gnv.geobackend.base.Result;
ingo@607:
ingo@607: import de.intevation.gnv.geobackend.util.DateUtils;
ingo@607:
ingo@607: import de.intevation.gnv.state.describedata.DefaultMinMaxDescribeData;
ingo@607: import de.intevation.gnv.state.describedata.DescribeData;
ingo@607: import de.intevation.gnv.state.describedata.MinMaxDescribeData;
ingo@607:
ingo@607: import de.intevation.gnv.state.exception.StateException;
ingo@607:
ingo@607: import de.intevation.gnv.utils.InputValidator;
ingo@607:
tim@335: import java.util.ArrayList;
tim@335: import java.util.Collection;
ingo@607: import java.util.Date;
ingo@607: import java.util.GregorianCalendar;
ingo@607: import java.util.Iterator;
ingo@470: import java.util.List;
tim@335:
tim@335: import org.apache.log4j.Logger;
tim@335:
ingo@607: import org.w3c.dom.Document;
ingo@607: import org.w3c.dom.Element;
ingo@607: import org.w3c.dom.Node;
tim@335:
tim@335: /**
ingo@796: * This state handles input of a min and max value and validates the user input.
ingo@796: * The min value needs to be equal or smaller than the max value, otherwise the
ingo@796: * input results in an error.
ingo@796: *
sascha@780: * @author Tim Englich
sascha@780: * @author Ingo Weinzierl
tim@335: */
tim@335: public class MinMaxState extends StateBase {
tim@335:
tim@335: /**
tim@335: * the logger, used to log exceptions and additonaly information
tim@335: */
tim@335: private static Logger log = Logger.getLogger(MinMaxState.class);
tim@335:
tim@335: /**
tim@335: * Constructor
tim@335: */
tim@335: public MinMaxState() {
tim@335: super();
tim@335: }
tim@335:
tim@335: /**
ingo@796: * The objects returned by the database are searched for two fields with
ingo@796: * 'MIN' and 'MAX' as names. These objects are stored and used to be
ingo@796: * displayed in the gui to give the user an orientation of the range he is
ingo@796: * able to insert.
ingo@796: *
sascha@803: * @param uuid
ingo@796: * @return
tim@335: */
tim@335: @Override
ingo@607: protected List