Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultExportMode.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 | 22c18083225e |
children | f953c9a559d8 |
comparison
equal
deleted
inserted
replaced
722:bb3ffe7d719e | 875:5e9efdda6894 |
---|---|
1 package de.intevation.gnv.state; | |
2 | |
3 /** | |
4 * This is the default implementation of <code>ExportMode</code>. | |
5 * | |
6 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> | |
7 */ | |
8 public class DefaultExportMode | |
9 implements ExportMode | |
10 { | |
11 /** | |
12 * The name of the export (e.g. pdf, svg, image). | |
13 */ | |
14 protected String name; | |
15 | |
16 /** | |
17 * A description for this export. | |
18 */ | |
19 protected String description; | |
20 | |
21 /** | |
22 * The mimetype used to do execute this export. | |
23 */ | |
24 protected String mimeType; | |
25 | |
26 /** | |
27 * Constructor. | |
28 * | |
29 */ | |
30 public DefaultExportMode(String name, String description, String mimeType){ | |
31 this.name = name; | |
32 this.description = description; | |
33 this.mimeType = mimeType; | |
34 } | |
35 | |
36 | |
37 public String getName() { | |
38 return name; | |
39 } | |
40 | |
41 | |
42 public String getDescription() { | |
43 return description; | |
44 } | |
45 | |
46 | |
47 public String getMimeType() { | |
48 return mimeType; | |
49 } | |
50 } | |
51 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 : |