diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/DefaultExportMode.java	Fri Sep 28 12:13:56 2012 +0200
@@ -0,0 +1,51 @@
+package de.intevation.gnv.state;
+
+/**
+ * This is the default implementation of <code>ExportMode</code>.
+ *
+ * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
+ */
+public class DefaultExportMode
+implements   ExportMode
+{
+    /**
+     * The name of the export (e.g. pdf, svg, image).
+     */
+    protected String name;
+
+    /**
+     * A description for this export.
+     */
+    protected String description;
+
+    /**
+     * The mimetype used to do execute this export.
+     */
+    protected String mimeType;
+
+    /**
+     * Constructor.
+     *
+     */
+    public DefaultExportMode(String name, String description, String mimeType){
+        this.name        = name;
+        this.description = description;
+        this.mimeType    = mimeType;
+    }
+
+
+    public String getName() {
+        return name;
+    }
+
+
+    public String getDescription() {
+        return description;
+    }
+
+
+    public String getMimeType() {
+        return mimeType;
+    }
+}
+// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org