comparison gwt-client/src/main/java/org/dive4elements/river/client/server/WQInfoServiceImpl.java @ 6371:19459037b3c7

GWT client: Display official lines in helper panels.
author Sascha L. Teichmann <teichmann@intevation.de>
date Wed, 19 Jun 2013 15:03:05 +0200
parents ea9eef426962
children 2ca1f3991e17
comparison
equal deleted inserted replaced
6368:791c7492b4ee 6371:19459037b3c7
193 node, "@type", ArtifactNamespaceContext.INSTANCE); 193 node, "@type", ArtifactNamespaceContext.INSTANCE);
194 194
195 String value = XMLUtils.xpathString( 195 String value = XMLUtils.xpathString(
196 node, "@value", ArtifactNamespaceContext.INSTANCE); 196 node, "@value", ArtifactNamespaceContext.INSTANCE);
197 197
198 String official = XMLUtils.xpathString(
199 node, "@official", ArtifactNamespaceContext.INSTANCE);
200
198 if (name != null && type != null) { 201 if (name != null && type != null) {
199 try { 202 try {
200 return new WQInfoObjectImpl( 203 return new WQInfoObjectImpl(
201 name, 204 name,
202 type, 205 type,
203 new Double(value)); 206 new Double(value),
207 official != null && official.equalsIgnoreCase("true"));
204 } 208 }
205 catch (NumberFormatException nfe) { 209 catch (NumberFormatException nfe) {
206 logger.warn(nfe.getLocalizedMessage()); 210 logger.warn(nfe.getLocalizedMessage());
207 } 211 }
208 } 212 }

http://dive4elements.wald.intevation.org