comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultOutputMode.java @ 657:af3f56758f59

merged gnv-artifacts/0.5
author Thomas Arendsen Hein <thomas@intevation.de>
date Fri, 28 Sep 2012 12:13:53 +0200
parents 61f688a69a55
children 9a828e5a2390
comparison
equal deleted inserted replaced
590:5f5f273c8566 657:af3f56758f59
1 package de.intevation.gnv.state;
2
3 import java.util.Collection;
4 import java.util.List;
5
6 /**
7 * @author Tim Englich (tim.englich@intevation.de)
8 * @author Ingo Weinzierl (ingo.weinzierl@intevation.de)
9 */
10 public class DefaultOutputMode implements OutputMode {
11
12 /**
13 * The UID of this Class.
14 */
15 private static final long serialVersionUID = -6459085460904827056L;
16 private String name = null;
17 private String description = null;
18 private String mimeType = null;
19 private Collection<InputValue> inputParameters = null;
20 private List<ExportMode> exportModes;
21
22 /**
23 * Constructor
24 *
25 * @param name
26 * @param description
27 * @param mimeType
28 */
29 public DefaultOutputMode(
30 String name,
31 String description,
32 String mimeType,
33 Collection<InputValue> inputParameters,
34 List<ExportMode> exportModes)
35 {
36 super();
37 this.name = name;
38 this.description = description;
39 this.mimeType = mimeType;
40 this.inputParameters = inputParameters;
41 this.exportModes = exportModes;
42 }
43
44 /**
45 * @see de.intevation.gnv.state.OutputMode#getDescription()
46 */
47 public String getDescription() {
48 return this.description;
49 }
50
51 /**
52 * @see de.intevation.gnv.state.OutputMode#getMimeType()
53 */
54 public String getMimeType() {
55 return this.mimeType;
56 }
57
58 /**
59 * @see de.intevation.gnv.state.OutputMode#getName()
60 */
61 public String getName() {
62 return this.name;
63 }
64
65 /**
66 * @see java.lang.Object#toString()
67 */
68 @Override
69 public String toString() {
70 return "Name: " + this.name + " ; Description: " + this.description
71 + " ; Mime-Type: " + this.mimeType;
72 }
73
74 /**
75 * @see de.intevation.gnv.state.OutputMode#getInputParameters()
76 */
77 public Collection<InputValue> getInputParameters() {
78 return this.inputParameters;
79 }
80
81 public List<ExportMode> getExportModes() {
82 return exportModes;
83 }
84
85 }
86 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:

http://dive4elements.wald.intevation.org