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