Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/wms/LayerInfo.java @ 657:af3f56758f59
merged gnv-artifacts/0.5
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:53 +0200 |
parents | 89aca25642d6 |
children | 452fad121560 |
comparison
equal
deleted
inserted
replaced
590:5f5f273c8566 | 657:af3f56758f59 |
---|---|
1 package de.intevation.gnv.wms; | |
2 | |
3 /** | |
4 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de) | |
5 */ | |
6 public class LayerInfo { | |
7 | |
8 public static final String LAYER = "layer"; | |
9 public static final String LAYER_MODEL = "model"; | |
10 public static final String LAYER_NAME = "name"; | |
11 public static final String LAYER_TYPE = "type"; | |
12 public static final String LAYER_DATA = "data"; | |
13 public static final String LAYER_STATUS = "status"; | |
14 | |
15 private String name; | |
16 private String type; | |
17 private String data; | |
18 private String status; | |
19 private String model; | |
20 | |
21 | |
22 public LayerInfo() { | |
23 } | |
24 | |
25 | |
26 public void setData(String data) { | |
27 this.data = data; | |
28 } | |
29 | |
30 public String getData() { | |
31 return data; | |
32 } | |
33 | |
34 public void setName(String name) { | |
35 this.name = name; | |
36 } | |
37 | |
38 public String getName() { | |
39 return name; | |
40 } | |
41 | |
42 public void setModel(String model) { | |
43 this.model = model; | |
44 } | |
45 | |
46 public String getModel() { | |
47 return model; | |
48 } | |
49 | |
50 public void setType(String type) { | |
51 this.type = type; | |
52 } | |
53 | |
54 public String getType() { | |
55 return type; | |
56 } | |
57 | |
58 public void setStatus(String status) { | |
59 this.status = status; | |
60 } | |
61 | |
62 public String getStatus() { | |
63 return status; | |
64 } | |
65 | |
66 public boolean isEmpty() { | |
67 if (name == null && data == null && type == null && status == null) | |
68 return true; | |
69 | |
70 return false; | |
71 } | |
72 | |
73 public boolean isBroken() { | |
74 if (name == null || data == null || type == null) | |
75 return true; | |
76 | |
77 return false; | |
78 } | |
79 } |