diff artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java @ 290:995fa6994480

Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output. artifacts/trunk@2310 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Fri, 08 Jul 2011 08:20:59 +0000
parents 5ed1afd81569
children e5bc48dc3ec3
line wrap: on
line diff
--- a/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java	Tue Jun 28 07:51:17 2011 +0000
+++ b/artifact-database/src/main/java/de/intevation/artifactdatabase/ProtocolUtils.java	Fri Jul 08 08:20:59 2011 +0000
@@ -165,8 +165,12 @@
             Element newOut = createArtNode(
                 creator,
                 "output",
-                new String[] {"name", "description", "mime-type"},
-                new String[] {o.getName(),o.getDescription(),o.getMimeType()});
+                new String[] {"name", "description", "mime-type", "type"},
+                new String[] {
+                    o.getName(),
+                    o.getDescription(),
+                    o.getMimeType(),
+                    o.getType() });
 
             Element facets = createArtNode(creator, "facets", null, null);
             appendFacets(creator, facets, o.getFacets());

http://dive4elements.wald.intevation.org