changeset 6942:b77a1e804c0a

Slightly better name for flowvelocitymeasurementvaluefacets.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 29 Aug 2013 12:15:05 +0200
parents d322da01d862
children 61128e4b6f46
files artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);

http://dive4elements.wald.intevation.org