comparison gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultOutputMode.java @ 573:bd67164cf28b

Devided actions and exports. Adjusted output and export actions. gnv/trunk@704 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 23 Feb 2010 17:43:16 +0000
parents 183850730a90
children 15ac78a91d1b
comparison
equal deleted inserted replaced
572:3f7bbc6dc751 573:bd67164cf28b
2 * 2 *
3 */ 3 */
4 package de.intevation.gnv.artifactdatabase.objects; 4 package de.intevation.gnv.artifactdatabase.objects;
5 5
6 import java.util.Collection; 6 import java.util.Collection;
7 import java.util.Map;
7 8
8 /** 9 /**
9 * @author Tim Englich <tim.englich@intevation.de> 10 * @author Tim Englich <tim.englich@intevation.de>
10 * 11 *
11 */ 12 */
20 21
21 private String mimeType = null; 22 private String mimeType = null;
22 23
23 private Collection<OutputParameter> outputParameter = null; 24 private Collection<OutputParameter> outputParameter = null;
24 25
25 public DefaultOutputMode(String name, String mimeType, 26 private Map<String, ExportMode> exports;
26 Collection<OutputParameter> outputParameter) { 27
28 public DefaultOutputMode(
29 String name,
30 String mimeType,
31 Collection<OutputParameter> outputParameter,
32 Map<String, ExportMode> exports)
33 {
27 super(); 34 super();
28 this.name = name; 35 this.name = name;
29 this.mimeType = mimeType; 36 this.mimeType = mimeType;
30 this.outputParameter = outputParameter; 37 this.outputParameter = outputParameter;
38 this.exports = exports;
31 } 39 }
32 40
33 /** 41 /**
34 * @see de.intevation.gnv.artifactdatabase.objects.OutputMode#getMimeType() 42 * @see de.intevation.gnv.artifactdatabase.objects.OutputMode#getMimeType()
35 */ 43 */
49 */ 57 */
50 public Collection<OutputParameter> getOutputParameters() { 58 public Collection<OutputParameter> getOutputParameters() {
51 return this.outputParameter; 59 return this.outputParameter;
52 } 60 }
53 61
62 public ExportMode getExportMode(String mode) {
63 return exports.get(mode);
64 }
54 } 65 }

http://dive4elements.wald.intevation.org