Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/RiverAccess.java @ 4133:c722c08cf502
Merged heads.
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Mon, 15 Oct 2012 09:31:50 +0200 |
parents | 116464587b51 |
children |
comparison
equal
deleted
inserted
replaced
4132:f6c73ee1b7f1 | 4133:c722c08cf502 |
---|---|
2 | 2 |
3 import de.intevation.flys.artifacts.FLYSArtifact; | 3 import de.intevation.flys.artifacts.FLYSArtifact; |
4 | 4 |
5 import org.apache.log4j.Logger; | 5 import org.apache.log4j.Logger; |
6 | 6 |
7 /** Access to river data of an artifact. */ | |
7 public class RiverAccess | 8 public class RiverAccess |
8 extends Access | 9 extends Access |
9 { | 10 { |
11 /** Private logger. */ | |
10 private static Logger log = Logger.getLogger(RiverAccess.class); | 12 private static Logger log = Logger.getLogger(RiverAccess.class); |
11 | 13 |
14 /** River name. */ | |
12 protected String river; | 15 protected String river; |
16 | |
13 | 17 |
14 public RiverAccess() { | 18 public RiverAccess() { |
15 } | 19 } |
16 | 20 |
17 public RiverAccess(FLYSArtifact artifact) { | 21 public RiverAccess(FLYSArtifact artifact) { |
18 super(artifact); | 22 super(artifact); |
19 } | 23 } |
20 | 24 |
25 | |
26 /** Get River name. */ | |
21 public String getRiver() { | 27 public String getRiver() { |
22 if (river == null) { | 28 if (river == null) { |
23 river = getString("river"); | 29 river = getString("river"); |
24 } | 30 } |
25 if (log.isDebugEnabled()) { | 31 if (log.isDebugEnabled()) { |