Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/services/MainValuesService.java @ 7552:81d5939ec064
Doc, cosmetics.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Tue, 12 Nov 2013 11:45:47 +0100 |
parents | b07cfc319781 |
children | 4e999b1d7acd |
comparison
equal
deleted
inserted
replaced
7551:4f1ba4b5fc1f | 7552:81d5939ec064 |
---|---|
102 * @return the River object. | 102 * @return the River object. |
103 */ | 103 */ |
104 protected River getRequestedRiver(Document data) | 104 protected River getRequestedRiver(Document data) |
105 throws NullPointerException | 105 throws NullPointerException |
106 { | 106 { |
107 logger.debug("MainValuesService.getRiver"); | 107 logger.debug("MainValuesService.getRequestedRiver"); |
108 | 108 |
109 String riverStr = XMLUtils.xpathString( | 109 String riverStr = XMLUtils.xpathString( |
110 data, XPATH_RIVER, ArtifactNamespaceContext.INSTANCE); | 110 data, XPATH_RIVER, ArtifactNamespaceContext.INSTANCE); |
111 | 111 |
112 return riverStr != null && (riverStr = riverStr.trim()).length() > 0 | 112 return riverStr != null && (riverStr = riverStr.trim()).length() > 0 |
260 } | 260 } |
261 return false; | 261 return false; |
262 } | 262 } |
263 | 263 |
264 | 264 |
265 /** Append xml representation of main values to document. */ | |
265 protected void appendMainValues( | 266 protected void appendMainValues( |
266 Document doc, | 267 Document doc, |
267 Element root, | 268 Element root, |
268 List<MainValue> mainValues, | 269 List<MainValue> mainValues, |
269 Integer riverId, | 270 Integer riverId, |
322 | 323 |
323 if (hasOfficialLine(namedMainValue, riverId)) { | 324 if (hasOfficialLine(namedMainValue, riverId)) { |
324 cr.addAttr(el, "official", "true"); | 325 cr.addAttr(el, "official", "true"); |
325 } | 326 } |
326 | 327 |
327 | |
328 return el; | 328 return el; |
329 } | 329 } |
330 } | 330 } |
331 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : | 331 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |