# HG changeset patch # User Felix Wolfsteller # Date 1359620917 -3600 # Node ID 5cb8e941da1ef9b6dda2d4cae56842be2c1e0f8e # Parent c30771dbf1bd2064aa29525ead880890ce34690e CollectionAttribute: New function to check if out exists. diff -r c30771dbf1bd -r 5cb8e941da1e flys-artifacts/src/main/java/de/intevation/flys/collections/CollectionAttribute.java --- a/flys-artifacts/src/main/java/de/intevation/flys/collections/CollectionAttribute.java Thu Jan 31 09:28:18 2013 +0100 +++ b/flys-artifacts/src/main/java/de/intevation/flys/collections/CollectionAttribute.java Thu Jan 31 09:28:37 2013 +0100 @@ -170,6 +170,10 @@ return doc; } + /** True if output with outputName is found. */ + public boolean hasOutput(String outputName) { + return getOutput(outputName) != null; + } public Map getOutputs() { return outputMap;