Mercurial > dive4elements > river
diff artifacts/src/main/java/org/dive4elements/river/collections/D4EArtifactCollection.java @ 8856:5e38e2924c07 3.2.x
Fix code style.
author | Tom Gottfried <tom@intevation.de> |
---|---|
date | Thu, 18 Jan 2018 20:12:01 +0100 |
parents | 994995baa32b |
children | 0a5239a1e46e |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/collections/D4EArtifactCollection.java Thu Jan 18 20:10:59 2018 +0100 +++ b/artifacts/src/main/java/org/dive4elements/river/collections/D4EArtifactCollection.java Thu Jan 18 20:12:01 2018 +0100 @@ -231,7 +231,8 @@ try { // Save the merged document into database. - getArtifactDB().setCollectionAttribute(identifier(), getContext().getMeta(), doc); + getArtifactDB().setCollectionAttribute( + identifier(), getContext().getMeta(), doc); log.info("Saving CollectionAttribute was successful."); @@ -325,7 +326,7 @@ return null; } - // XXX NOTE: the outGen is not able to process its generate() operation, + // XXX NOTE: outGen is not able to process its generate() operation, // because it has no OutputStream set! Document dummy = XMLUtils.newDocument(); outGen.init(out, dummy, null, getContext()); @@ -382,7 +383,9 @@ // If type contains 'chartinfo' use a generator that // just allow access to width, height etc. - String key = type != null && !type.isEmpty() && type.indexOf("chartinfo") > 0 + String key = type != null + && !type.isEmpty() + && type.indexOf("chartinfo") > 0 ? type : name; @@ -440,7 +443,10 @@ * * @param generator The generator that gets a master Artifact. */ - protected void prepareMasterArtifact(D4EArtifact master, OutGenerator generator) { + protected void prepareMasterArtifact( + D4EArtifact master, + OutGenerator generator + ) { // Get master artifact. if (master != null) { log.debug("Set master Artifact to uuid: " + master.identifier()); @@ -464,7 +470,9 @@ identifier(), callMeta); String masterUUID = XMLUtils.xpathString( - document, XPATH_MASTER_UUID, ArtifactNamespaceContext.INSTANCE); + document, + XPATH_MASTER_UUID, + ArtifactNamespaceContext.INSTANCE); D4EArtifact masterArtifact = (D4EArtifact) getArtifact(masterUUID); return masterArtifact; @@ -574,7 +582,7 @@ * This method returns the list of artifact UUIDs that this collections * contains. * - * @param context The CallContext that is necessary to get information about + * @param context CallContext that is necessary to get information about * the ArtifactDatabase. * * @return a list of uuids. @@ -666,7 +674,9 @@ try { for (String uuid: getArtifactUUIDs()) { D4EArtifact subArt = (D4EArtifact) getArtifact(uuid); - if (subArt.getName() != null && subArt.getName().equals(name)) { + if ( + subArt.getName() != null && subArt.getName().equals(name) + ) { ret.add(subArt); } }