view gnv-artifacts/src/main/java/de/intevation/gnv/state/ExtendedInputData.java @ 787:6cd8492019d8

Validate wkt string and display error messages if the validation failed (issue214). gnv-artifacts/trunk@869 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 30 Mar 2010 16:51:20 +0000
parents c907636c0288
children a5526908f92f
line wrap: on
line source
package de.intevation.gnv.state;

/**
 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
 */
public class ExtendedInputData extends DefaultInputData {

    public static final String SEPARATOR = ";";

    protected String parameterid;

    public ExtendedInputData(
        String name,
        String value,
        Object object,
        String parameterid)
    {
        super(name, value, object);
        this.parameterid = parameterid;
    }

    public String getParameterID() {
        return parameterid;
    }

    public void setParameter(String parameterid) {
        this.parameterid = parameterid;
    }

    public String[] splitParameter() {
        if (parameterid != null)
            return parameterid.split(SEPARATOR);

        return null;
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org