Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/AttributeWriter.java @ 4925:57609ffb3843
AttributeWriter: Use new CollectionAttribute.hasOutput .
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Thu, 31 Jan 2013 09:29:24 +0100 |
parents | 725de57d3774 |
children | 345f3bba6f15 |
comparison
equal
deleted
inserted
replaced
4924:725de57d3774 | 4925:57609ffb3843 |
---|---|
98 | 98 |
99 for (Map.Entry<String, Output> entry: newAttr.entrySet()) { | 99 for (Map.Entry<String, Output> entry: newAttr.entrySet()) { |
100 String outName = entry.getKey(); | 100 String outName = entry.getKey(); |
101 Output a = entry.getValue(); | 101 Output a = entry.getValue(); |
102 | 102 |
103 Output exists = attribute.getOutput(outName); | 103 if (!attribute.hasOutput(outName)) { |
104 if (exists == null) { | |
105 attribute.addOutput(outName, a); | 104 attribute.addOutput(outName, a); |
106 } | 105 } |
107 | 106 |
108 attribute.clearFacets(outName); | 107 attribute.clearFacets(outName); |
109 | 108 |