Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/src/main/java/de/intevation/gnv/wms/LayerInfo.java @ 1116:2d393d79c097
Added author names.
gnv-artifacts/trunk@1262 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 04 Nov 2010 21:46:58 +0000 |
parents | f953c9a559d8 |
children |
rev | line source |
---|---|
1115
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
1 /* |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
2 * Copyright (c) 2010 by Intevation GmbH |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
3 * |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
4 * This program is free software under the LGPL (>=v2.1) |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
5 * Read the file LGPL.txt coming with the software for details |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
6 * or visit http://www.gnu.org/licenses/ if it does not exist. |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
7 */ |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
778
diff
changeset
|
8 |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
9 package de.intevation.gnv.wms; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
10 |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 /** |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
12 * This class is used to store some meta information about a layer (e.g. a WMS |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
13 * layers). |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
14 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
15 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 */ |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 public class LayerInfo { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
19 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
20 * Constant field <code>LAYER</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
21 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 public static final String LAYER = "layer"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
23 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
24 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
25 * Constant field <code>LAYER_MODEL</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
26 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 public static final String LAYER_MODEL = "model"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
28 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
29 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
30 * Constant field <code>LAYER_NAME</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
31 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 public static final String LAYER_NAME = "name"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
33 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
34 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
35 * Constant field <code>LAYER_TYPE</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
36 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
37 public static final String LAYER_TYPE = "type"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
38 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
39 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
40 * Constant field <code>LAYER_DATA</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
41 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
42 public static final String LAYER_DATA = "data"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
43 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
44 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
45 * Constant field <code>LAYER_STATUS</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
46 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
47 public static final String LAYER_STATUS = "status"; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
48 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
49 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
50 * Constant field <code>LAYER_TITLE</code> |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
51 */ |
730
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
52 public static final String LAYER_TITLE = "title"; |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
53 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
54 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
55 * Field storing the layer name. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
56 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
57 private String name; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
58 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
59 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
60 * Field storing the layer title. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
61 */ |
730
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
62 private String title; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
63 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
64 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
65 * Field storing the layer type. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
66 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
67 private String type; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
68 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
69 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
70 * Field storing the layer data. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
71 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
72 private String data; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
73 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
74 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
75 * Field storing the layer status. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
76 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
77 private String status; |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
78 |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
79 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
80 * Field storing the layer model. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
81 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
82 private String model; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
83 |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
84 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
85 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
86 * Constructs an empty object. All parameters should be set via setter |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
87 * methods. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
88 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
89 public LayerInfo() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
90 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
91 |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
92 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
93 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
94 * Set {@link #data} to data. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
95 * |
778
9a828e5a2390
Removed trailing whitespace
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
768
diff
changeset
|
96 * @param data |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
97 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
98 public void setData(String data) { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
99 this.data = data; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
100 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
101 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
102 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
103 * Get {@link #data} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
104 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
105 * @return data |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
106 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
107 public String getData() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
108 return data; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
109 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
110 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
111 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
112 * Set {@link #name} to name. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
113 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
114 * @param name |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
115 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
116 public void setName(String name) { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
117 this.name = name; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
118 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
119 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
120 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
121 * Get {@link #name} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
122 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
123 * @return name |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
124 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
125 public String getName() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
126 return name; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
127 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
128 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
129 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
130 * Set {@link #title} to title. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
131 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
132 * @param title |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
133 */ |
730
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
134 public void setTitle(String title) { |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
135 this.title = title; |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
136 } |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
137 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
138 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
139 * Get {@link #title} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
140 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
141 * @return title |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
142 */ |
730
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
143 public String getTitle() { |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
144 return title; |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
145 } |
452fad121560
Implemented code for changing the title of a wms layer (issue198).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
622
diff
changeset
|
146 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
147 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
148 * Set {@link #model} to model. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
149 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
150 * @param model |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
151 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
152 public void setModel(String model) { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
153 this.model = model; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
154 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
155 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
156 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
157 * Get {@link #model} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
158 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
159 * @return model |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
160 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
161 public String getModel() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
162 return model; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
163 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
164 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
165 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
166 * Set {@link #type} to type. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
167 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
168 * @param type |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
169 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
170 public void setType(String type) { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
171 this.type = type; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
172 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
173 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
174 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
175 * Get {@link #type} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
176 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
177 * @return type |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
178 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
179 public String getType() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
180 return type; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
181 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
182 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
183 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
184 * Set {@link #status} to status. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
185 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
186 * @param status |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
187 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
188 public void setStatus(String status) { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
189 this.status = status; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
190 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
191 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
192 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
193 * Get {@link #status} |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
194 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
195 * @return status |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
196 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
197 public String getStatus() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
198 return status; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
199 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
200 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
201 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
202 * A <code>LayerInfo</code> object is emtpy if name, data, type and status |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
203 * are null. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
204 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
205 * @return True, if this object is empty - otherwise false. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
206 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
207 public boolean isEmpty() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
208 if (name == null && data == null && type == null && status == null) |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
209 return true; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
210 |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
211 return false; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
212 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
213 |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
214 /** |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
215 * A <code>LayerInfo</code> object is broken if name, data or type are null. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
216 * |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
217 * @return True, if this object is broken - otherwise false. |
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
218 */ |
622
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
219 public boolean isBroken() { |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
220 if (name == null || data == null || type == null) |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
221 return true; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
222 |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
223 return false; |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
224 } |
89aca25642d6
Implemented method stubs of MapfileGenerator. Mapfiles are successfully created corresponding meta.xml files.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
225 } |
768
1d23ab77fb72
Added javadoc in de.intevation.gnv.wms package.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
730
diff
changeset
|
226 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |