comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/layer/LayerMetaData.java @ 1119:7c4f81f74c47

merged gnv-artifacts
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:00 +0200
parents f953c9a559d8
children
comparison
equal deleted inserted replaced
1027:fca4b5eb8d2f 1119:7c4f81f74c47
1 /*
2 * Copyright (c) 2010 by Intevation GmbH
3 *
4 * This program is free software under the LGPL (>=v2.1)
5 * Read the file LGPL.txt coming with the software for details
6 * or visit http://www.gnu.org/licenses/ if it does not exist.
7 */
8
9 /**
10 *
11 */
12 package de.intevation.gnv.state.layer;
13 /**
14 * Beanclass for storing Metainformation to create Shapefiles or Layer
15 * in an WMS-Output.
16 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
17 *
18 */
19 public class LayerMetaData {
20
21 private String table = null;
22 private String geometryType = null;
23 private String where = null;
24 private String columns = null;
25 private String templateID = null;
26 private String[] queryValues = null;
27 private String geometryWKT = null;
28 private String layertitle = null;
29
30 /**
31 * Constructor
32 * @param table the Name of the Databasetable the Data should be fetched from.
33 * @param geometryType the Geometrytype of the Layer
34 * @param where the Query-Statement which should be used to fetch the Data.
35 * @param columns the Columnnames which should be fetched to generate the
36 * Shapefile
37 * @param templateID the Id of the Template which should be used to create
38 * the Mapfileentry.
39 * @param queryValues the Values that should be used to Query the data
40 * @param geometryWKT The Geometry represented by as an WKT to Query the Data.
41 */
42 public LayerMetaData(String table, String geometryType, String where,
43 String columns, String templateID,
44 String[] queryValues,String geometryWKT,
45 String layertitle) {
46 super();
47 this.table = table;
48 this.geometryType = geometryType;
49 this.where = where;
50 this.columns = columns;
51 this.templateID = templateID;
52 this.queryValues = queryValues;
53 this.geometryWKT = geometryWKT;
54 this.layertitle = layertitle;
55 }
56
57 /**
58 * Returns the Geometry WKT
59 * @return the Geometry WKT
60 */
61 public String getGeometryWKT() {
62 return geometryWKT;
63 }
64
65 /**
66 * Returns the Name of the Databasetable the Data should be fetched from.
67 * @return the Name of the Databasetable the Data should be fetched from.
68 */
69 public String getTable() {
70 return table;
71 }
72
73 /**
74 * Returns the Geometrytype of the Layer.
75 * @return the Geometrytype of the Layer.
76 */
77 public String getGeometryType() {
78 return geometryType;
79 }
80
81 /**
82 * Returns the Query-Statement which should be used to fetch the Data.
83 * @return the Query-Statement which should be used to fetch the Data.
84 */
85 public String getWhere() {
86 return where;
87 }
88
89 /**
90 * Returns the Columnnames which should be fetched to generate the
91 * Shapefile
92 * @return the Columnnames which should be fetched to generate the
93 * Shapefile
94 */
95 public String getColumns() {
96 return columns;
97 }
98
99 /**
100 * Returns the Id of the Template which should be used to create
101 * the Mapfileentry.
102 * @return the Id of the Template which should be used to create
103 * the Mapfileentry.
104 */
105 public String getTemplateID() {
106 return templateID;
107 }
108
109 /**
110 * Returns the Values that should be used to Query the data.
111 * @return the Values that should be used to Query the data.
112 */
113 public String[] getQueryValues() {
114 return queryValues;
115 }
116
117 /**
118 * Returns the layer title.
119 * @return the layer title.
120 */
121 public String getLayertitle() {
122 return layertitle;
123 }
124
125 }

http://dive4elements.wald.intevation.org