Mercurial > dive4elements > framework
annotate artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java @ 460:3c1177c58312 2.9.13
Add tag 2.9.12 for changeset fdb479d4a759
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 11 Mar 2013 17:25:13 +0100 |
parents | f2eab30cbc9a |
children |
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 |
251
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
3 import java.util.ArrayList; |
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
|
4 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
|
5 |
209
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 * The default implementation of an Output. |
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 * @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
|
10 */ |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
11 public class DefaultOutput implements Output { |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
12 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 protected String name; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 protected String description; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 protected String mimeType; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 |
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
|
19 protected String 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
|
20 |
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
|
21 protected List<Facet> facets; |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
22 |
358
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
23 protected Settings settings; |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
24 |
209
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 /** |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 * The default constructor that instantiates a new DefaultOutput object. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 * |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 * @param name The name of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 * @param description The description of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
31 * @param mimeType The mimetype of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 */ |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
33 public DefaultOutput(String name, String description, String mimeType) { |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
34 this.name = name; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
35 this.description = description; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
36 this.mimeType = mimeType; |
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
|
37 this.type = ""; |
251
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
38 this.facets = new ArrayList<Facet>(); |
209
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
39 } |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
40 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
41 |
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
|
42 public DefaultOutput( |
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
|
43 String name, |
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
|
44 String description, |
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
|
45 String mimeType, |
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
|
46 String 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
|
47 { |
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
|
48 this(name, description, mimeType); |
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
|
49 |
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
|
50 this.facets = new ArrayList<Facet>(); |
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
|
51 this.type = 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
|
52 } |
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
|
53 |
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
|
54 |
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
|
55 public DefaultOutput( |
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
|
56 String name, |
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
|
57 String description, |
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
|
58 String mimeType, |
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
|
59 List<Facet> facets) |
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
|
60 { |
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
|
61 this(name, description, mimeType); |
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
|
62 |
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
|
63 this.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
|
64 this.facets = facets; |
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
|
65 } |
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
|
66 |
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
|
67 |
209
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
68 /** |
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
|
69 * This constructor builds a new Output object that contains facets as well. |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
70 * |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
71 * @param name The name 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
|
72 * @param description The description 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
|
73 * @param mimeType The mimetype 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
|
74 * @param facets The list of facets supported by this output. |
448
f2eab30cbc9a
Update doc of DefaultOutput constructor
Björn Ricks <bjoern.ricks@intevation.de>
parents:
379
diff
changeset
|
75 * @param type The type of the Output e.g. chart |
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
|
76 */ |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
77 public DefaultOutput( |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
78 String name, |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
79 String description, |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
80 String mimeType, |
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
|
81 List<Facet> facets, |
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
|
82 String type) |
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
|
83 { |
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
|
84 this(name, description, mimeType, facets); |
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
|
85 |
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
|
86 this.type = type; |
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
|
87 } |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
88 |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
89 |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
90 /** |
209
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
91 * Returns the name of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
92 * |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
93 * @return the name of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
94 */ |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
95 public String getName() { |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
96 return name; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
97 } |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
98 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
99 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
100 /** |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
101 * Returns the description of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
102 * |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
103 * @return the description of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
104 */ |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
105 public String getDescription() { |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
106 return description; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
107 } |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
108 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
109 |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
110 /** |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
111 * Returns the mimetype of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
112 * |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
113 * @return the mimetype of this output. |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
114 */ |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
115 public String getMimeType() { |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
116 return mimeType; |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
117 } |
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
|
118 |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
119 |
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
|
120 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
|
121 return 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
|
122 } |
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
|
123 |
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
|
124 |
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
|
125 /** |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
126 * Returns the list of facets supported by 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
|
127 * |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
128 * @return the list of facets supported by 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
|
129 */ |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
130 public List<Facet> getFacets() { |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
131 return facets; |
41404961c804
Added support for facets - facets of output modes are read from configuration now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
209
diff
changeset
|
132 } |
251
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
133 |
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
134 |
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
135 public void addFacet(Facet facet) { |
379
95ff5a25a339
Avoid adding duplicated facets in DefaultOutput.addFacet().
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
361
diff
changeset
|
136 if (facet != null && !facets.contains(facet)) { |
95ff5a25a339
Avoid adding duplicated facets in DefaultOutput.addFacet().
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
361
diff
changeset
|
137 facets.add(facet); |
95ff5a25a339
Avoid adding duplicated facets in DefaultOutput.addFacet().
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
361
diff
changeset
|
138 } |
251
9e12f3fbcf78
Added a method to add new facets to an output.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
230
diff
changeset
|
139 } |
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
|
140 |
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
|
141 |
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
|
142 public void addFacets(List<Facet> 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
|
143 this.facets.addAll(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
|
144 } |
358
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
145 |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
146 |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
147 @Override |
361
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
148 public void setFacets(List<Facet> facets) { |
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
149 this.facets = facets; |
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
150 } |
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
151 |
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
152 |
b47d0464f0db
Extended the Output interface and its default implementation with a method to replace an existing list of Facets.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
358
diff
changeset
|
153 @Override |
358
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
154 public void setSettings(Settings settings) { |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
155 this.settings = settings; |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
156 } |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
157 |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
158 |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
159 @Override |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
160 public Settings getSettings() { |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
161 return settings; |
03a8f9796571
Added interfaces for a Settings hierachy currently used for Outputs.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
296
diff
changeset
|
162 } |
209
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
163 } |
1a3fb29b8b2e
Enhanced the abstract state: the output modes are read now.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
164 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : |