Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/GaugeOverviewInfoService.java @ 3896:82109cea32d2
Return also the official gauge number in a service response
flys-artifacts/trunk@5558 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Bjoern Ricks <bjoern.ricks@intevation.de> |
---|---|
date | Fri, 21 Sep 2012 14:03:48 +0000 |
parents | 9e2a720ceda0 |
children | 5fce1908317f |
comparison
equal
deleted
inserted
replaced
3895:9e2a720ceda0 | 3896:82109cea32d2 |
---|---|
132 String station = getGaugeValue(gauge.getStation()); | 132 String station = getGaugeValue(gauge.getStation()); |
133 if (station != null) { | 133 if (station != null) { |
134 ec.addAttr(eg, "station", station, true); | 134 ec.addAttr(eg, "station", station, true); |
135 } | 135 } |
136 | 136 |
137 Long official = gauge.getOfficialNumber(); | |
138 if (official != null) { | |
139 ec.addAttr(eg, "official", official.toString(), true); | |
140 } | |
141 | |
137 egs.appendChild(eg); | 142 egs.appendChild(eg); |
138 } | 143 } |
139 | 144 |
140 go.appendChild(r); | 145 go.appendChild(r); |
141 go.appendChild(egs); | 146 go.appendChild(egs); |