Mercurial > dive4elements > river
comparison flys-artifacts/src/main/java/de/intevation/flys/collections/FLYSArtifactCollection.java @ 1013:73330e89b0af
Minor cosmetics, (comments).
flys-artifacts/trunk@2459 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Wed, 03 Aug 2011 11:20:07 +0000 |
parents | d0c9a5f32c30 |
children | 3f3988bb6284 |
comparison
equal
deleted
inserted
replaced
1012:388e709224ec | 1013:73330e89b0af |
---|---|
41 /** | 41 /** |
42 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | 42 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> |
43 */ | 43 */ |
44 public class FLYSArtifactCollection extends DefaultArtifactCollection { | 44 public class FLYSArtifactCollection extends DefaultArtifactCollection { |
45 | 45 |
46 /** The logger used in this class.*/ | 46 /** The logger used in this class. */ |
47 private static Logger log = Logger.getLogger(FLYSArtifactCollection.class); | 47 private static Logger log = Logger.getLogger(FLYSArtifactCollection.class); |
48 | 48 |
49 | 49 |
50 /** Constant XPath that points to the outputmodes of an artifact.*/ | 50 /** Constant XPath that points to the outputmodes of an artifact. */ |
51 public static final String XPATH_ARTIFACT_OUTPUTMODES = | 51 public static final String XPATH_ARTIFACT_OUTPUTMODES = |
52 "/art:result/art:outputmodes"; | 52 "/art:result/art:outputmodes"; |
53 | 53 |
54 public static final String XPATH_COLLECTION_ITEMS = | 54 public static final String XPATH_COLLECTION_ITEMS = |
55 "/art:result/art:artifact-collection/art:collection-item"; | 55 "/art:result/art:artifact-collection/art:collection-item"; |
134 Node newAttr = doc.getFirstChild(); | 134 Node newAttr = doc.getFirstChild(); |
135 | 135 |
136 newAttr = mergeLoadedRecommendations(oldAttrs, newAttr); | 136 newAttr = mergeLoadedRecommendations(oldAttrs, newAttr); |
137 | 137 |
138 try { | 138 try { |
139 // save the merged document into database | 139 // Save the merged document into database. |
140 db.setCollectionAttribute(identifier(), context.getMeta(), doc); | 140 db.setCollectionAttribute(identifier(), context.getMeta(), doc); |
141 } | 141 } |
142 catch (ArtifactDatabaseException adb) { | 142 catch (ArtifactDatabaseException adb) { |
143 log.error(adb, adb); | 143 log.error(adb, adb); |
144 } | 144 } |
202 generator = getOutGenerator(context, name, subtype); | 202 generator = getOutGenerator(context, name, subtype); |
203 } | 203 } |
204 | 204 |
205 if (generator == null) { | 205 if (generator == null) { |
206 log.error("There is no generator specified for output: " + name); | 206 log.error("There is no generator specified for output: " + name); |
207 // TODO throw an exception. | 207 // TODO Throw an exception. |
208 | 208 |
209 return; | 209 return; |
210 } | 210 } |
211 | 211 |
212 generator.init(format, out, context); | 212 generator.init(format, out, context); |