comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/Capabilities.java @ 5838:5aa05a7a34b7

Rename modules to more fitting names.
author Sascha L. Teichmann <teichmann@intevation.de>
date Thu, 25 Apr 2013 15:23:37 +0200
parents flys-client/src/main/java/org/dive4elements/river/client/shared/model/Capabilities.java@821a02bbfb4e
children 172338b1407f
comparison
equal deleted inserted replaced
5837:d9901a08d0a6 5838:5aa05a7a34b7
1 package org.dive4elements.river.client.shared.model;
2
3 import java.io.Serializable;
4 import java.util.ArrayList;
5 import java.util.List;
6
7
8 public class Capabilities implements Serializable {
9
10 protected String title;
11 protected String onlineResource;
12 protected String fees;
13 protected String accessConstraints;
14
15 protected ContactInformation contactInformation;
16
17 protected List<WMSLayer> layers;
18
19
20 public Capabilities() {
21 layers = new ArrayList<WMSLayer>();
22 }
23
24
25 /**
26 * @param fees
27 * @param accessConstraints
28 * @param layers
29 */
30 public Capabilities(
31 String title,
32 String onlineResource,
33 ContactInformation contactInformation,
34 String fees,
35 String accessConstraints,
36 List<WMSLayer> layers
37 ) {
38 this.title = title;
39 this.onlineResource = onlineResource;
40 this.contactInformation = contactInformation;
41 this.fees = fees;
42 this.accessConstraints = accessConstraints;
43 this.layers = layers;
44 }
45
46
47 public String getTitle() {
48 return title;
49 }
50
51
52 public String getOnlineResource() {
53 return onlineResource;
54 }
55
56
57 public ContactInformation getContactInformation() {
58 return contactInformation;
59 }
60
61
62 public String getFees() {
63 return fees;
64 }
65
66
67 public String getAccessConstraints() {
68 return accessConstraints;
69 }
70
71
72 public List<WMSLayer> getLayers() {
73 return layers;
74 }
75
76
77 @Override
78 public String toString() {
79 StringBuilder sb = new StringBuilder();
80 sb.append("--- Capabilities ---\n");
81 sb.append("Title:.............. " + title + "\n");
82 sb.append("Online Resource:.... " + onlineResource + "\n");
83 sb.append("Contact Information: " + contactInformation + "\n");
84 sb.append("Fees:............... " + fees + "\n");
85 sb.append("Access Constraints:. " + accessConstraints + "\n");
86 sb.append("Layers: ");
87
88 for (WMSLayer layer: layers) {
89 sb.append(" - " + layer + "\n");
90 }
91
92 return sb.toString();
93 }
94 }
95 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org