Mercurial > dive4elements > framework
view artifact-database/src/main/java/de/intevation/artifactdatabase/state/DefaultOutput.java @ 246:a8a06bbe306c
Added calls to call init/close for call contextes.
artifacts/trunk@1686 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 14 Apr 2011 11:18:10 +0000 |
parents | fbd57d2eeaef |
children | 9e12f3fbcf78 |
line wrap: on
line source
package de.intevation.artifactdatabase.state; import java.util.List; /** * The default implementation of an Output. * * @author <a href="mailto:ingo.weinzierl@intevation.de">Ingo Weinzierl</a> */ public class DefaultOutput implements Output { protected String name; protected String description; protected String mimeType; protected List<Facet> facets; /** * The default constructor that instantiates a new DefaultOutput object. * * @param name The name of this output. * @param description The description of this output. * @param mimeType The mimetype of this output. */ public DefaultOutput(String name, String description, String mimeType) { this.name = name; this.description = description; this.mimeType = mimeType; } /** * This constructor builds a new Output object that contains facets as well. * * @param name The name of this output. * @param description The description of this output. * @param mimeType The mimetype of this output. * @param facets The list of facets supported by this output. */ public DefaultOutput( String name, String description, String mimeType, List<Facet> facets) { this(name, description, mimeType); this.facets = facets; } /** * Returns the name of this output. * * @return the name of this output. */ public String getName() { return name; } /** * Returns the description of this output. * * @return the description of this output. */ public String getDescription() { return description; } /** * Returns the mimetype of this output. * * @return the mimetype of this output. */ public String getMimeType() { return mimeType; } /** * Returns the list of facets supported by this output. * * @return the list of facets supported by this output. */ public List<Facet> getFacets() { return facets; } } // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :