annotate artifact-database/src/main/java/de/intevation/artifactdatabase/state/Output.java @ 296:a8e009ebe13c

Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output. artifacts/trunk@2358 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Tue, 19 Jul 2011 06:59:19 +0000
parents 995fa6994480
children 03a8f9796571
rev   line source
209
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
1 package de.intevation.artifactdatabase.state;
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
2
226
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
3 import java.util.List;
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
4
209
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
5
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
6 /**
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
7 * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a>
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
8 */
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
9 public interface Output {
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
10
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
11 /**
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
12 * Retrieve the name of this output mode.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
13 *
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
14 * @return the name of this output mode.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
15 */
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
16 public String getName();
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
17
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
18 /**
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
19 * Retrieve the description of an output.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
20 *
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
21 * @return the description.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
22 */
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
23 public String getDescription();
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
24
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
25 /**
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
26 * Retrieve the mimetype used for the output.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
27 *
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
28 * @return the mimetype.
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
29 */
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
30 public String getMimeType();
226
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
31
290
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
32
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
33 /**
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
34 * Returns the type of this output.
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
35 *
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
36 * @return the type.
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
37 */
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
38 public String getType();
995fa6994480 Outputs can have a member variable 'type' that should make it easier to distinguish the type of an Output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 251
diff changeset
39
226
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
40 /**
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
41 * Retrieve the facets of this output.
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
42 *
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
43 * @return the facets of this output.
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
44 */
41404961c804 Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 209
diff changeset
45 public List<Facet> getFacets();
251
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
46
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
47 /**
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
48 * Add a new facet to this output.
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
49 *
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
50 * @param facet The new facet.
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
51 */
9e12f3fbcf78 Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 226
diff changeset
52 public void addFacet(Facet facet);
296
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
53
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
54 /**
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
55 * Add a list of facet to this output.
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
56 *
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
57 * @param facets A list of facets.
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
58 */
a8e009ebe13c Added a addFacets(List<Facet) method to Outputs to be able to add more than only a single facet to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents: 290
diff changeset
59 public void addFacets(List<Facet> facets);
209
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
60 }
1a3fb29b8b2e Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff changeset
61 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org