comparison flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java @ 1996:c6432e8ea31e

Bugfix: add new Outputs during merge process in AttributeWriter. flys-artifacts/trunk@3433 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 16 Dec 2011 10:25:55 +0000
parents f114c0d55d19
children ca6ccf722c24
comparison
equal deleted inserted replaced
1995:f114c0d55d19 1996:c6432e8ea31e
91 */ 91 */
92 protected CollectionAttribute write() { 92 protected CollectionAttribute write() {
93 for (Map.Entry<String, Output> entry: newAttr.entrySet()) { 93 for (Map.Entry<String, Output> entry: newAttr.entrySet()) {
94 String outName = entry.getKey(); 94 String outName = entry.getKey();
95 Output a = entry.getValue(); 95 Output a = entry.getValue();
96
97 Output exists = attribute.getOutput(outName);
98 if (exists == null) {
99 attribute.addOutput(outName, a);
100 }
101
96 attribute.clearFacets(outName); 102 attribute.clearFacets(outName);
97
98 writeOutput(a.getName(), newFacets, oldFacets); 103 writeOutput(a.getName(), newFacets, oldFacets);
99 } 104 }
100 105
101 return attribute; 106 return attribute;
102 } 107 }

http://dive4elements.wald.intevation.org