Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultOutputMode.java @ 376:d8f3ef441bf2
merged gnv-artifacts/0.3
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:13:47 +0200 |
parents | e964a3d8f7bc |
children | 61f688a69a55 |
comparison
equal
deleted
inserted
replaced
293:6b0ef2324d02 | 376:d8f3ef441bf2 |
---|---|
1 /** | |
2 * | |
3 */ | |
4 package de.intevation.gnv.state; | |
5 | |
6 import java.util.Collection; | |
7 | |
8 /** | |
9 * @author Tim Englich <tim.englich@intevation.de> | |
10 * | |
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 | |
23 /** | |
24 * Constructor | |
25 * | |
26 * @param name | |
27 * @param description | |
28 * @param mimeType | |
29 */ | |
30 public DefaultOutputMode(String name, String description, String mimeType, | |
31 Collection<InputValue> inputParameters) { | |
32 super(); | |
33 this.name = name; | |
34 this.description = description; | |
35 this.mimeType = mimeType; | |
36 this.inputParameters = inputParameters; | |
37 } | |
38 | |
39 /** | |
40 * @see de.intevation.gnv.state.OutputMode#getDescription() | |
41 */ | |
42 public String getDescription() { | |
43 return this.description; | |
44 } | |
45 | |
46 /** | |
47 * @see de.intevation.gnv.state.OutputMode#getMimeType() | |
48 */ | |
49 public String getMimeType() { | |
50 return this.mimeType; | |
51 } | |
52 | |
53 /** | |
54 * @see de.intevation.gnv.state.OutputMode#getName() | |
55 */ | |
56 public String getName() { | |
57 return this.name; | |
58 } | |
59 | |
60 /** | |
61 * @see java.lang.Object#toString() | |
62 */ | |
63 @Override | |
64 public String toString() { | |
65 return "Name: " + this.name + " ; Description: " + this.description | |
66 + " ; Mime-Type: " + this.mimeType; | |
67 } | |
68 | |
69 /** | |
70 * @see de.intevation.gnv.state.OutputMode#getInputParameters() | |
71 */ | |
72 public Collection<InputValue> getInputParameters() { | |
73 return this.inputParameters; | |
74 } | |
75 | |
76 } |