ingo@209: package de.intevation.artifactdatabase.state; ingo@209: ingo@226: import java.util.List; ingo@226: ingo@209: /** ingo@209: * The default implementation of an Output. ingo@209: * ingo@209: * @author Ingo Weinzierl ingo@209: */ ingo@209: public class DefaultOutput implements Output { ingo@209: ingo@209: protected String name; ingo@209: ingo@209: protected String description; ingo@209: ingo@209: protected String mimeType; ingo@209: ingo@226: protected List facets; ingo@226: ingo@209: ingo@209: /** ingo@209: * The default constructor that instantiates a new DefaultOutput object. ingo@209: * ingo@209: * @param name The name of this output. ingo@209: * @param description The description of this output. ingo@209: * @param mimeType The mimetype of this output. ingo@209: */ ingo@209: public DefaultOutput(String name, String description, String mimeType) { ingo@209: this.name = name; ingo@209: this.description = description; ingo@209: this.mimeType = mimeType; ingo@209: } ingo@209: ingo@209: ingo@209: /** ingo@226: * This constructor builds a new Output object that contains facets as well. ingo@226: * ingo@226: * @param name The name of this output. ingo@226: * @param description The description of this output. ingo@226: * @param mimeType The mimetype of this output. ingo@226: * @param facets The list of facets supported by this output. ingo@226: */ ingo@226: public DefaultOutput( ingo@226: String name, ingo@226: String description, ingo@226: String mimeType, ingo@226: List facets) ingo@226: { ingo@226: this(name, description, mimeType); ingo@226: ingo@226: this.facets = facets; ingo@226: } ingo@226: ingo@226: ingo@226: /** ingo@209: * Returns the name of this output. ingo@209: * ingo@209: * @return the name of this output. ingo@209: */ ingo@209: public String getName() { ingo@209: return name; ingo@209: } ingo@209: ingo@209: ingo@209: /** ingo@209: * Returns the description of this output. ingo@209: * ingo@209: * @return the description of this output. ingo@209: */ ingo@209: public String getDescription() { ingo@209: return description; ingo@209: } ingo@209: ingo@209: ingo@209: /** ingo@209: * Returns the mimetype of this output. ingo@209: * ingo@209: * @return the mimetype of this output. ingo@209: */ ingo@209: public String getMimeType() { ingo@209: return mimeType; ingo@209: } ingo@226: ingo@226: ingo@226: /** ingo@226: * Returns the list of facets supported by this output. ingo@226: * ingo@226: * @return the list of facets supported by this output. ingo@226: */ ingo@226: public List getFacets() { ingo@226: return facets; ingo@226: } ingo@209: } ingo@209: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :