Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/artifacts/RiverAxisArtifact.java @ 1767:b2730e31ff5b
Store Facets without association to state id.
flys-artifacts/trunk@3088 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 26 Oct 2011 12:45:34 +0000 |
parents | feaf778d510e |
children | c62ff9e72cea |
comparison
equal
deleted
inserted
replaced
1766:23b99572f725 | 1767:b2730e31ff5b |
---|---|
75 | 75 |
76 DefaultState state = (DefaultState) getCurrentState(context); | 76 DefaultState state = (DefaultState) getCurrentState(context); |
77 state.computeInit(this, hash(), context, callMeta, fs); | 77 state.computeInit(this, hash(), context, callMeta, fs); |
78 | 78 |
79 if (!fs.isEmpty()) { | 79 if (!fs.isEmpty()) { |
80 facets.put(getCurrentStateId(), fs); | 80 facets.addAll(fs); |
81 } | 81 } |
82 } | 82 } |
83 catch (NumberFormatException nfe) { | 83 catch (NumberFormatException nfe) { |
84 logger.error("Could not create Artifact: " + nfe.getMessage()); | 84 logger.error("Could not create Artifact: " + nfe.getMessage()); |
85 throw new IllegalArgumentException("No river id given."); | 85 throw new IllegalArgumentException("No river id given."); |