Mercurial > dive4elements > framework
comparison 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 |
comparison
equal
deleted
inserted
replaced
289:cf2e8cca02b7 | 290:995fa6994480 |
---|---|
163 { | 163 { |
164 for (Output o: outputs) { | 164 for (Output o: outputs) { |
165 Element newOut = createArtNode( | 165 Element newOut = createArtNode( |
166 creator, | 166 creator, |
167 "output", | 167 "output", |
168 new String[] {"name", "description", "mime-type"}, | 168 new String[] {"name", "description", "mime-type", "type"}, |
169 new String[] {o.getName(),o.getDescription(),o.getMimeType()}); | 169 new String[] { |
170 o.getName(), | |
171 o.getDescription(), | |
172 o.getMimeType(), | |
173 o.getType() }); | |
170 | 174 |
171 Element facets = createArtNode(creator, "facets", null, null); | 175 Element facets = createArtNode(creator, "facets", null, null); |
172 appendFacets(creator, facets, o.getFacets()); | 176 appendFacets(creator, facets, o.getFacets()); |
173 | 177 |
174 newOut.appendChild(facets); | 178 newOut.appendChild(facets); |