comparison flys-client/src/main/java/de/intevation/flys/client/shared/model/DefaultOutputMode.java @ 63:c8e651530f34

Added an interface and its default implementation to describe an output mode of an artifact. flys-client/trunk@1545 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Wed, 23 Mar 2011 10:58:07 +0000
parents
children d01b0d81b92a
comparison
equal deleted inserted replaced
62:faf565d22c9a 63:c8e651530f34
1 package de.intevation.flys.client.shared.model;
2
3
4 /**
5 * The default implementation of an Output.
6 *
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
8 */
9 public class DefaultOutputMode implements OutputMode {
10
11 /** The name of this mode.*/
12 protected String name;
13
14 /** The description of this mode.*/
15 protected String description;
16
17 /** The mime-type of this mode.*/
18 protected String mimeType;
19
20
21 /** A convinience constructor.*/
22 public DefaultOutputMode() {
23 }
24
25
26 /**
27 * The default constructor.
28 *
29 * @param name The name of this mode.
30 * @param description The description of this mode.
31 * @param mimeType The mime-type of this mode.
32 */
33 public DefaultOutputMode(String name, String description, String mimeType) {
34 this.name = name;
35 this.description = description;
36 this.mimeType = mimeType;
37 }
38
39
40 public String getName() {
41 return name;
42 }
43
44
45 public String getDescription() {
46 return description;
47 }
48
49
50 public String getMimeType() {
51 return mimeType;
52 }
53 }
54 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org