view gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerMetaData.java @ 1138:2c00570ab3bd

merged doc
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:02 +0200
parents f953c9a559d8
children
line wrap: on
line source
/*
 * Copyright (c) 2010 by Intevation GmbH
 *
 * This program is free software under the LGPL (>=v2.1)
 * Read the file LGPL.txt coming with the software for details
 * or visit http://www.gnu.org/licenses/ if it does not exist.
 */

/**
 *
 */
package de.intevation.gnv.state.layer;
/**
 * Beanclass for storing Metainformation to create Shapefiles or Layer
 * in an WMS-Output.
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 *
 */
public class LayerMetaData {

    private String table = null;
    private String geometryType = null;
    private String where = null;
    private String columns = null;
    private String templateID = null;
    private String[] queryValues = null;
    private String geometryWKT = null;
    private String layertitle = null;

    /**
     * Constructor
     * @param table the Name of the Databasetable the Data should be fetched from.
     * @param geometryType the Geometrytype of the Layer
     * @param where the Query-Statement which should be used to fetch the Data.
     * @param columns the Columnnames which should be fetched to generate the
     *                Shapefile
     * @param templateID the Id of the Template which should be used to create
     *                   the Mapfileentry.
     * @param queryValues the Values that should be used to Query the data
     * @param geometryWKT The Geometry represented by as an WKT to Query the Data.
     */
    public LayerMetaData(String table, String geometryType, String where,
                         String columns, String templateID,
                         String[] queryValues,String geometryWKT,
                         String layertitle) {
        super();
        this.table        = table;
        this.geometryType = geometryType;
        this.where        = where;
        this.columns      = columns;
        this.templateID   = templateID;
        this.queryValues  = queryValues;
        this.geometryWKT  = geometryWKT;
        this.layertitle    = layertitle;
    }

    /**
     *  Returns the Geometry WKT
     * @return  the Geometry WKT
     */
    public String getGeometryWKT() {
        return geometryWKT;
    }

    /**
     * Returns the Name of the Databasetable the Data should be fetched from.
     * @return the Name of the Databasetable the Data should be fetched from.
     */
    public String getTable() {
        return table;
    }

    /**
     * Returns the Geometrytype of the Layer.
     * @return the Geometrytype of the Layer.
     */
    public String getGeometryType() {
        return geometryType;
    }

    /**
     * Returns the Query-Statement which should be used to fetch the Data.
     * @return the Query-Statement which should be used to fetch the Data.
     */
    public String getWhere() {
        return where;
    }

    /**
     * Returns the Columnnames which should be fetched to generate the
     * Shapefile
     * @return the Columnnames which should be fetched to generate the
     *         Shapefile
     */
    public String getColumns() {
        return columns;
    }

    /**
     * Returns the Id of the Template which should be used to create
     * the Mapfileentry.
     * @return the Id of the Template which should be used to create
     *         the Mapfileentry.
     */
    public String getTemplateID() {
        return templateID;
    }

    /**
     * Returns the Values that should be used to Query the data.
     * @return the Values that should be used to Query the data.
     */
    public String[] getQueryValues() {
        return queryValues;
    }

    /**
     * Returns the layer title.
     * @return the layer title.
     */
    public String getLayertitle() {
        return layertitle;
    }

}

http://dive4elements.wald.intevation.org