Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/shared/model/WMSLayer.java @ 6199:734ba3732bb6
CapabilitiesParse parses the "queryable" attribute of a WMSLayer now (#1253).
author | Christian Lins <christian.lins@intevation.de> |
---|---|
date | Wed, 05 Jun 2013 13:13:20 +0200 |
parents | ea9eef426962 |
children |
comparison
equal
deleted
inserted
replaced
6198:809c91beee54 | 6199:734ba3732bb6 |
---|---|
20 protected String title; | 20 protected String title; |
21 | 21 |
22 protected List<String> srs; | 22 protected List<String> srs; |
23 protected List<WMSLayer> layers; | 23 protected List<WMSLayer> layers; |
24 | 24 |
25 protected boolean queryable = true; | |
26 | |
25 | 27 |
26 public WMSLayer() { | 28 public WMSLayer() { |
27 layers = new ArrayList<WMSLayer>(); | 29 layers = new ArrayList<WMSLayer>(); |
28 } | 30 } |
29 | 31 |
37 public WMSLayer( | 39 public WMSLayer( |
38 String server, | 40 String server, |
39 String title, | 41 String title, |
40 String name, | 42 String name, |
41 List<String> srs, | 43 List<String> srs, |
42 List<WMSLayer> layers | 44 List<WMSLayer> layers, |
45 boolean queryable | |
43 ) { | 46 ) { |
44 this.server = server; | 47 this.server = server; |
45 this.title = title; | 48 this.title = title; |
46 this.name = name; | 49 this.name = name; |
47 this.srs = srs; | 50 this.srs = srs; |
48 this.layers = layers; | 51 this.layers = layers; |
52 this.queryable = queryable; | |
49 } | 53 } |
50 | 54 |
51 | 55 |
52 public String getServer() { | 56 public String getServer() { |
53 return server; | 57 return server; |
72 public List<WMSLayer> getLayers() { | 76 public List<WMSLayer> getLayers() { |
73 return layers; | 77 return layers; |
74 } | 78 } |
75 | 79 |
76 | 80 |
81 public boolean isQueryable() { | |
82 return queryable; | |
83 } | |
84 | |
85 | |
77 public boolean supportsSrs(String srs) { | 86 public boolean supportsSrs(String srs) { |
78 if (this.srs == null || this.srs.size() == 0) { | 87 if (this.srs == null || this.srs.size() == 0) { |
79 return true; | 88 return true; |
80 } | 89 } |
81 | 90 |