comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultOutputMode.java @ 875:5e9efdda6894

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

http://dive4elements.wald.intevation.org