comparison flys-artifacts/src/main/java/de/intevation/flys/collections/OutputParser.java @ 2094:22732713c54d

Made classes to merge Collection Outs more verbose for better debugging. flys-artifacts/trunk@3640 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 10 Jan 2012 11:44:46 +0000
parents 2fe270661b20
children 1203e12c97a6
comparison
equal deleted inserted replaced
2093:ebc2aa64c1be 2094:22732713c54d
63 63
64 FLYSArtifact flys = (FLYSArtifact) db.getRawArtifact(uuid); 64 FLYSArtifact flys = (FLYSArtifact) db.getRawArtifact(uuid);
65 65
66 List<Output> outList = flys.getOutputs(context); 66 List<Output> outList = flys.getOutputs(context);
67 67
68 logger.debug(" has " + outList.size() + " Outputs.");
69
68 for (Output out: outList) { 70 for (Output out: outList) {
69 String name = out.getName(); 71 String name = out.getName();
72 logger.debug("Process Output '" + name + "'");
70 73
71 Output o = outs.get(name); 74 Output o = outs.get(name);
72 int pos = 1; 75 int pos = 1;
73 76
74 if (o == null) { 77 if (o == null) {
118 List<Facet> old, 121 List<Facet> old,
119 int pos) 122 int pos)
120 { 123 {
121 List<Facet> newFacets = new ArrayList<Facet>(old.size()); 124 List<Facet> newFacets = new ArrayList<Facet>(old.size());
122 125
126 logger.debug("There are " + old.size() + " Facets for this Output.");
127
123 for (Facet f: old) { 128 for (Facet f: old) {
124 newFacets.add(new ManagedFacetAdapter(f, uuid, pos++, 1, 1)); 129 newFacets.add(new ManagedFacetAdapter(f, uuid, pos++, 1, 1));
125 } 130 }
126 131
127 return newFacets; 132 return newFacets;

http://dive4elements.wald.intevation.org