Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultOutputMode.java @ 1119:7c4f81f74c47
merged gnv-artifacts
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:00 +0200 |
parents | f953c9a559d8 |
children |
comparison
equal
deleted
inserted
replaced
1027:fca4b5eb8d2f | 1119:7c4f81f74c47 |
---|---|
1 /* | |
2 * Copyright (c) 2010 by Intevation GmbH | |
3 * | |
4 * This program is free software under the LGPL (>=v2.1) | |
5 * Read the file LGPL.txt coming with the software for details | |
6 * or visit http://www.gnu.org/licenses/ if it does not exist. | |
7 */ | |
8 | |
9 package de.intevation.gnv.state; | |
10 | |
11 import java.util.Collection; | |
12 import java.util.List; | |
13 | |
14 /** | |
15 * The default implementation of <code>OutputMode</code>. | |
16 * | |
17 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a> | |
18 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
19 */ | |
20 public class DefaultOutputMode implements OutputMode { | |
21 | |
22 /** | |
23 * The UID of this Class. | |
24 */ | |
25 private static final long serialVersionUID = -6459085460904827056L; | |
26 private String name = null; | |
27 private String description = null; | |
28 private String mimeType = null; | |
29 private Collection<InputValue> inputParameters = null; | |
30 private List<ExportMode> exportModes; | |
31 | |
32 /** | |
33 * Constructor | |
34 * | |
35 * @param name The name of the output mode. | |
36 * @param description The description of this output mode. | |
37 * @param mimeType The mime type used by this output mode. | |
38 * @param inputParameters The input parameters required by this output mode. | |
39 * @param exportModes The export modes for this output mode. | |
40 */ | |
41 public DefaultOutputMode( | |
42 String name, | |
43 String description, | |
44 String mimeType, | |
45 Collection<InputValue> inputParameters, | |
46 List<ExportMode> exportModes) | |
47 { | |
48 super(); | |
49 this.name = name; | |
50 this.description = description; | |
51 this.mimeType = mimeType; | |
52 this.inputParameters = inputParameters; | |
53 this.exportModes = exportModes; | |
54 } | |
55 | |
56 /** | |
57 * @return the description. | |
58 */ | |
59 public String getDescription() { | |
60 return this.description; | |
61 } | |
62 | |
63 /** | |
64 * @return the mime type. | |
65 */ | |
66 public String getMimeType() { | |
67 return this.mimeType; | |
68 } | |
69 | |
70 /** | |
71 * @return the name. | |
72 */ | |
73 public String getName() { | |
74 return this.name; | |
75 } | |
76 | |
77 /** | |
78 * @return this output mode as string. | |
79 */ | |
80 @Override | |
81 public String toString() { | |
82 return "Name: " + this.name + " ; Description: " + this.description | |
83 + " ; Mime-Type: " + this.mimeType; | |
84 } | |
85 | |
86 /** | |
87 * @return the input parameters. | |
88 */ | |
89 public Collection<InputValue> getInputParameters() { | |
90 return this.inputParameters; | |
91 } | |
92 | |
93 /** | |
94 * | |
95 * @return the export modes. | |
96 */ | |
97 public List<ExportMode> getExportModes() { | |
98 return exportModes; | |
99 } | |
100 | |
101 } | |
102 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |