tim@859: /**
tim@859:  *
tim@859:  */
tim@859: package de.intevation.gnv.state.layer;
tim@859: /**
tim@859:  * Beanclass for storing Metainformation to create Shapefiles or Layer
tim@859:  * in an WMS-Output.
tim@859:  * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
tim@859:  *
tim@859:  */
tim@859: public class LayerMetaData {
tim@859: 
tim@859:     private String table = null;
tim@859:     private String geometryType = null;
tim@859:     private String where = null;
tim@859:     private String columns = null;
tim@859:     private String templateID = null;
tim@859:     private String[] queryValues = null;
tim@859:     private String geometryWKT = null;
ingo@1057:     private String layertitle = null;
tim@859: 
tim@859:     /**
tim@859:      * Constructor
tim@859:      * @param table the Name of the Databasetable the Data should be fetched from.
tim@859:      * @param geometryType the Geometrytype of the Layer
tim@859:      * @param where the Query-Statement which should be used to fetch the Data.
tim@859:      * @param columns the Columnnames which should be fetched to generate the
tim@859:      *                Shapefile
tim@859:      * @param templateID the Id of the Template which should be used to create
tim@859:      *                   the Mapfileentry.
tim@859:      * @param queryValues the Values that should be used to Query the data
tim@859:      * @param geometryWKT The Geometry represented by as an WKT to Query the Data.
tim@859:      */
tim@859:     public LayerMetaData(String table, String geometryType, String where,
ingo@870:                          String columns, String templateID,
ingo@1057:                          String[] queryValues,String geometryWKT,
ingo@1057:                          String layertitle) {
tim@859:         super();
ingo@1057:         this.table        = table;
tim@859:         this.geometryType = geometryType;
ingo@1057:         this.where        = where;
ingo@1057:         this.columns      = columns;
ingo@1057:         this.templateID   = templateID;
ingo@1057:         this.queryValues  = queryValues;
ingo@1057:         this.geometryWKT  = geometryWKT;
ingo@1057:         this.layertitle    = layertitle;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      *  Returns the Geometry WKT
tim@859:      * @return  the Geometry WKT
tim@859:      */
tim@859:     public String getGeometryWKT() {
tim@859:         return geometryWKT;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Name of the Databasetable the Data should be fetched from.
tim@859:      * @return the Name of the Databasetable the Data should be fetched from.
tim@859:      */
tim@859:     public String getTable() {
tim@859:         return table;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Geometrytype of the Layer.
tim@859:      * @return the Geometrytype of the Layer.
tim@859:      */
tim@859:     public String getGeometryType() {
tim@859:         return geometryType;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Query-Statement which should be used to fetch the Data.
tim@859:      * @return the Query-Statement which should be used to fetch the Data.
tim@859:      */
tim@859:     public String getWhere() {
tim@859:         return where;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Columnnames which should be fetched to generate the
tim@859:      * Shapefile
tim@859:      * @return the Columnnames which should be fetched to generate the
tim@859:      *         Shapefile
tim@859:      */
tim@859:     public String getColumns() {
tim@859:         return columns;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Id of the Template which should be used to create
tim@859:      * the Mapfileentry.
tim@859:      * @return the Id of the Template which should be used to create
tim@859:      *         the Mapfileentry.
tim@859:      */
tim@859:     public String getTemplateID() {
tim@859:         return templateID;
tim@859:     }
tim@859: 
tim@859:     /**
tim@859:      * Returns the Values that should be used to Query the data.
tim@859:      * @return the Values that should be used to Query the data.
tim@859:      */
tim@859:     public String[] getQueryValues() {
tim@859:         return queryValues;
tim@859:     }
tim@859: 
ingo@1057:     /**
ingo@1057:      * Returns the layer title.
ingo@1057:      * @return the layer title.
ingo@1057:      */
ingo@1057:     public String getLayertitle() {
ingo@1057:         return layertitle;
ingo@1057:     }
ingo@1057: 
tim@859: }