Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/FlowVelocityMeasurementArtifact.java @ 6942:b77a1e804c0a
Slightly better name for flowvelocitymeasurementvaluefacets.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 29 Aug 2013 12:15:05 +0200 |
parents | af13ceeba52a |
children | 602dac32a996 |
comparison
equal
deleted
inserted
replaced
6941:d322da01d862 | 6942:b77a1e804c0a |
---|---|
113 String code = getDatacageIDValue(data); | 113 String code = getDatacageIDValue(data); |
114 | 114 |
115 if (code != null) { | 115 if (code != null) { |
116 // parse code, interact with factory, add real facets. | 116 // parse code, interact with factory, add real facets. |
117 // store relevant parts of code as data. | 117 // store relevant parts of code as data. |
118 // TODO i18n/Name for facet: Include date with dateformatter. | |
119 String name = | |
120 FlowVelocityMeasurementFactory.getFlowVelocityMeasurement( | |
121 Integer.parseInt(code)).getDescription(); | |
118 Facet facet = new FlowVelocityMeasurementFacet( | 122 Facet facet = new FlowVelocityMeasurementFacet( |
119 FLOW_VELOCITY_MEASUREMENT, | 123 FLOW_VELOCITY_MEASUREMENT, |
120 "flowvelocity-name"); | 124 name); |
121 fs.add(facet); | 125 fs.add(facet); |
122 addFacets(state.getID(), fs); | 126 addFacets(state.getID(), fs); |
123 addStringData(DATA_NAME, code); | 127 addStringData(DATA_NAME, code); |
124 } | 128 } |
125 | 129 |