comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixRealizingAccess.java @ 3468:f37e7e8907cb

merged flys-artifacts/2.8.1
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:14:39 +0200
parents c1fd75bd893a
children acfd48384835
comparison
equal deleted inserted replaced
3387:5ffad8bde8ad 3468:f37e7e8907cb
1 package de.intevation.flys.artifacts.access;
2
3 import de.intevation.flys.artifacts.FLYSArtifact;
4
5 import de.intevation.flys.artifacts.model.Segment;
6
7 import java.util.List;
8
9 import org.apache.log4j.Logger;
10
11 public class FixRealizingAccess
12 extends FixAccess
13 {
14 private static Logger log = Logger.getLogger(FixRealizingAccess.class);
15
16 protected Boolean isQ;
17
18 protected List<Segment> segments;
19
20 public FixRealizingAccess() {
21 }
22
23 public FixRealizingAccess(FLYSArtifact artifact) {
24 super(artifact);
25 }
26
27 public Boolean isQ() {
28 if (isQ == null) {
29 isQ = getBoolean("wq_isq");
30 }
31
32 if (log.isDebugEnabled()) {
33 log.debug("isQ: " + isQ);
34 }
35
36 return isQ;
37 }
38
39 public List<Segment> getSegments() {
40 if (segments == null) {
41 String segmentsS = getString("wq_values");
42 if (segmentsS != null) {
43 segments = Segment.parseSegments(segmentsS);
44 }
45 }
46 if (log.isDebugEnabled()) {
47 log.debug("segments: " + segments);
48 }
49
50 return segments;
51 }
52 }
53 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org