changeset 4923:5cb8e941da1e

CollectionAttribute: New function to check if out exists.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 31 Jan 2013 09:28:37 +0100
parents c30771dbf1bd
children 725de57d3774
files flys-artifacts/src/main/java/de/intevation/flys/collections/CollectionAttribute.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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<String, Output> getOutputs() {
         return outputMap;

http://dive4elements.wald.intevation.org