comparison flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java @ 1995:f114c0d55d19

Little optimisation when writing CollectionAttributes flys-artifacts/trunk@3432 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 16 Dec 2011 10:08:39 +0000
parents 85132c9edd64
children c6432e8ea31e
comparison
equal deleted inserted replaced
1994:3e703d134bbe 1995:f114c0d55d19
88 * are recorded here and not in the new set). 88 * are recorded here and not in the new set).
89 * 89 *
90 * @return document with merged outputs as described. 90 * @return document with merged outputs as described.
91 */ 91 */
92 protected CollectionAttribute write() { 92 protected CollectionAttribute write() {
93 for (String outName: newAttr.keySet()) { 93 for (Map.Entry<String, Output> entry: newAttr.entrySet()) {
94 Output a = newAttr.get(outName); 94 String outName = entry.getKey();
95 Output a = entry.getValue();
95 attribute.clearFacets(outName); 96 attribute.clearFacets(outName);
96 97
97 writeOutput(a.getName(), newFacets, oldFacets); 98 writeOutput(a.getName(), newFacets, oldFacets);
98 } 99 }
99 100

http://dive4elements.wald.intevation.org