Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/MeasurementStationInfoService.java @ 8417:71144e25a6c9
Add comment to measurement stations info.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 16 Oct 2014 13:39:22 +0200 |
parents | 17db08570637 |
children | 0a5239a1e46e |
comparison
equal
deleted
inserted
replaced
8416:6399ebc6fce9 | 8417:71144e25a6c9 |
---|---|
112 ec.addAttr(eg, "stoptime", DATE_FORMAT.format(tstop), | 112 ec.addAttr(eg, "stoptime", DATE_FORMAT.format(tstop), |
113 true); | 113 true); |
114 } | 114 } |
115 } | 115 } |
116 | 116 |
117 String comment = mstation.getComment(); | |
118 if (comment != null) { | |
119 ec.addAttr(eg, "comment", comment, true); | |
120 } | |
121 | |
117 String gaugename = mstation.getGaugeName(); | 122 String gaugename = mstation.getGaugeName(); |
118 if (gaugename != null) { | 123 if (gaugename != null) { |
119 Element egauge = ec.create("gauge"); | 124 Element egauge = ec.create("gauge"); |
120 ec.addAttr(egauge, "name", gaugename, true); | 125 ec.addAttr(egauge, "name", gaugename, true); |
121 eg.appendChild(egauge); | 126 eg.appendChild(egauge); |
122 } | |
123 | |
124 String comment = mstation.getComment(); | |
125 if (comment != null) { | |
126 Element ecomment = ec.create("comment"); | |
127 ec.addAttr(ecomment, "comment", comment, true); | |
128 eg.appendChild(ecomment); | |
129 } | 127 } |
130 | 128 |
131 egs.appendChild(eg); | 129 egs.appendChild(eg); |
132 } | 130 } |
133 | 131 |