comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java @ 209:1a3fb29b8b2e

Enhanced the abstract state: the output modes are read now. artifacts/trunk@1539 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 22 Mar 2011 16:06:35 +0000
parents
children 41404961c804
comparison
equal deleted inserted replaced
208:8ea4d0824d8f 209:1a3fb29b8b2e
1 package de.intevation.artifactdatabase.state;
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 DefaultOutput implements Output {
10
11 protected String name;
12
13 protected String description;
14
15 protected String mimeType;
16
17
18 /**
19 * The default constructor that instantiates a new DefaultOutput object.
20 *
21 * @param name The name of this output.
22 * @param description The description of this output.
23 * @param mimeType The mimetype of this output.
24 */
25 public DefaultOutput(String name, String description, String mimeType) {
26 this.name = name;
27 this.description = description;
28 this.mimeType = mimeType;
29 }
30
31
32 /**
33 * Returns the name of this output.
34 *
35 * @return the name of this output.
36 */
37 public String getName() {
38 return name;
39 }
40
41
42 /**
43 * Returns the description of this output.
44 *
45 * @return the description of this output.
46 */
47 public String getDescription() {
48 return description;
49 }
50
51
52 /**
53 * Returns the mimetype of this output.
54 *
55 * @return the mimetype of this output.
56 */
57 public String getMimeType() {
58 return mimeType;
59 }
60 }
61 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org