Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/access/Access.java @ 4528:cbd0fafcb26b
Documentation.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 15 Nov 2012 14:23:03 +0100 |
parents | 5ff3b2f5fb1c |
children |
comparison
equal
deleted
inserted
replaced
4527:06c10ad39280 | 4528:cbd0fafcb26b |
---|---|
35 | 35 |
36 public void setArtifact(FLYSArtifact artifact) { | 36 public void setArtifact(FLYSArtifact artifact) { |
37 this.artifact = artifact; | 37 this.artifact = artifact; |
38 } | 38 } |
39 | 39 |
40 | |
41 /** Get a data entry as string. */ | |
40 protected String getString(String key) { | 42 protected String getString(String key) { |
41 StateData sd = artifact.getData(key); | 43 StateData sd = artifact.getData(key); |
42 if (sd == null) { | 44 if (sd == null) { |
43 log.warn("missing '" + key + "' value"); | 45 log.warn("missing '" + key + "' value"); |
44 return null; | 46 return null; |
45 } | 47 } |
46 return (String)sd.getValue(); | 48 return (String)sd.getValue(); |
47 } | 49 } |
48 | 50 |
51 /** Get a data entry as double, returns null if string not double valueoffable. */ | |
49 protected Double getDouble(String key) { | 52 protected Double getDouble(String key) { |
50 StateData sd = artifact.getData(key); | 53 StateData sd = artifact.getData(key); |
51 if (sd == null) { | 54 if (sd == null) { |
52 log.warn("missing '" + key + "' value"); | 55 log.warn("missing '" + key + "' value"); |
53 return null; | 56 return null; |