Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/org/dive4elements/river/artifacts/access/FixRealizingAccess.java @ 5831:bd047b71ab37
Repaired internal references
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Thu, 25 Apr 2013 12:06:39 +0200 |
parents | flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/FixRealizingAccess.java@a929d9a9fa1e |
children |
comparison
equal
deleted
inserted
replaced
5830:160f53ee0870 | 5831:bd047b71ab37 |
---|---|
1 package org.dive4elements.river.artifacts.access; | |
2 | |
3 import org.dive4elements.artifacts.CallContext; | |
4 import org.dive4elements.river.artifacts.FLYSArtifact; | |
5 | |
6 import org.dive4elements.river.artifacts.model.Segment; | |
7 | |
8 import java.util.List; | |
9 | |
10 import org.apache.log4j.Logger; | |
11 | |
12 | |
13 /** Fix-Realizing (Volmer/Ausgelagerte Wasserspiegellage) access. */ | |
14 public class FixRealizingAccess | |
15 extends FixAccess | |
16 { | |
17 private static Logger log = Logger.getLogger(FixRealizingAccess.class); | |
18 | |
19 protected Boolean isQ; | |
20 | |
21 protected List<Segment> segments; | |
22 | |
23 public FixRealizingAccess(FLYSArtifact artifact, CallContext context) { | |
24 super(artifact, context); | |
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 : |