[PATCH 1 of 2] Slightly better name for flowvelocitymeasurementvaluefacets

Wald Commits scm-commit at wald.intevation.org
Thu Aug 29 12:32:46 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1377771305 -7200
# Node ID b77a1e804c0a7d5c00d93f5cf51b5c54190ba61a
# Parent  d322da01d86210c33b77df024355015cc9cdbd73
Slightly better name for flowvelocitymeasurementvaluefacets.

diff -r d322da01d862 -r b77a1e804c0a artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java	Thu Aug 29 11:28:55 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java	Thu Aug 29 12:15:05 2013 +0200
@@ -115,9 +115,13 @@
         if (code != null) {
             // parse code, interact with factory, add real facets.
             // store relevant parts of code as data.
+            // TODO i18n/Name for facet: Include date with dateformatter.
+            String name =
+                FlowVelocityMeasurementFactory.getFlowVelocityMeasurement(
+                    Integer.parseInt(code)).getDescription();
             Facet facet = new FlowVelocityMeasurementFacet(
                 FLOW_VELOCITY_MEASUREMENT,
-                "flowvelocity-name");
+                name);
             fs.add(facet);
             addFacets(state.getID(), fs);
             addStringData(DATA_NAME, code);


More information about the Dive4elements-commits mailing list