comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/services/MeasurementStationInfoService.java @ 4263:6abc8507e3c8

Add operator and station id to the artifact xml Return also the operator and id in the xml description returned by MeasurementStationInfoService.
author Björn Ricks <bjoern.ricks@intevation.de>
date Fri, 26 Oct 2012 11:15:10 +0200
parents 5da024c2af62
children 31c017420502
comparison
equal deleted inserted replaced
4262:87c3a3ac6ddf 4263:6abc8507e3c8
48 String name = mstation.getName(); 48 String name = mstation.getName();
49 if (name != null) { 49 if (name != null) {
50 ec.addAttr(eg, "name", name, true); 50 ec.addAttr(eg, "name", name, true);
51 } 51 }
52 52
53 Integer id = mstation.getId();
54 if (id != null) {
55 ec.addAttr(eg, "id", Integer.toString(id), true);
56 }
57
53 String type = mstation.getMeasurementType(); 58 String type = mstation.getMeasurementType();
54 if (type != null) { 59 if (type != null) {
55 ec.addAttr(eg, "type", type, true); 60 ec.addAttr(eg, "type", type, true);
56 } 61 }
57 62
76 if (b != null) { 81 if (b != null) {
77 ec.addAttr(eg, "end", getStringValue(b), true); 82 ec.addAttr(eg, "end", getStringValue(b), true);
78 } 83 }
79 } 84 }
80 85
86 String moperator = mstation.getOperator();
87 if (moperator != null) {
88 ec.addAttr(eg, "operator", moperator, true);
89 }
90
81 egs.appendChild(eg); 91 egs.appendChild(eg);
82 } 92 }
83 93
84 this.riverele.appendChild(egs); 94 this.riverele.appendChild(egs);
85 95

http://dive4elements.wald.intevation.org