comparison artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java @ 251:9e12f3fbcf78

Added a method to add new facets to an output. artifacts/trunk@1742 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Ingo Weinzierl <ingo.weinzierl@intevation.de>
date Thu, 21 Apr 2011 13:43:24 +0000
parents fbd57d2eeaef
children 995fa6994480
comparison
equal deleted inserted replaced
250:366cf4694d45 251:9e12f3fbcf78
1 package de.intevation.artifactdatabase.state; 1 package de.intevation.artifactdatabase.state;
2 2
3 import java.util.ArrayList;
3 import java.util.List; 4 import java.util.List;
4 5
5 /** 6 /**
6 * The default implementation of an Output. 7 * The default implementation of an Output.
7 * 8 *
27 */ 28 */
28 public DefaultOutput(String name, String description, String mimeType) { 29 public DefaultOutput(String name, String description, String mimeType) {
29 this.name = name; 30 this.name = name;
30 this.description = description; 31 this.description = description;
31 this.mimeType = mimeType; 32 this.mimeType = mimeType;
33 this.facets = new ArrayList<Facet>();
32 } 34 }
33 35
34 36
35 /** 37 /**
36 * This constructor builds a new Output object that contains facets as well. 38 * This constructor builds a new Output object that contains facets as well.
88 * @return the list of facets supported by this output. 90 * @return the list of facets supported by this output.
89 */ 91 */
90 public List<Facet> getFacets() { 92 public List<Facet> getFacets() {
91 return facets; 93 return facets;
92 } 94 }
95
96
97 public void addFacet(Facet facet) {
98 facets.add(facet);
99 }
93 } 100 }
94 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 : 101 // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org