ingo@1115: /* ingo@1115: * Copyright (c) 2010 by Intevation GmbH ingo@1115: * ingo@1115: * This program is free software under the LGPL (>=v2.1) ingo@1115: * Read the file LGPL.txt coming with the software for details ingo@1115: * or visit http://www.gnu.org/licenses/ if it does not exist. ingo@1115: */ ingo@1115: tim@71: package de.intevation.gnv.artifacts.fis.product; tim@71: sascha@479: import de.intevation.gnv.state.InputData; tim@71: sascha@479: import java.util.Collection; tim@71: tim@71: /** ingo@792: * This is the default implementation of Product. sascha@803: * sascha@780: * @author Tim Englich sascha@778: * tim@71: */ tim@71: public class DefaultProduct implements Product { tim@71: tim@335: /** tim@335: * The UID of this Class tim@335: */ tim@335: private static final long serialVersionUID = 6473812725442092770L; tim@335: tim@71: private String name = null; tim@171: tim@71: private Collection parameter = null; tim@171: ingo@478: private String artifactFactory = null; tim@71: tim@71: /** tim@71: * Constructor sascha@778: * ingo@792: * @param name The name of this product. ingo@792: * @param parameter Required parameters for this product. ingo@792: * @param artifactFactory The artifact factory. tim@71: */ ingo@478: public DefaultProduct( ingo@478: String name, ingo@478: Collection parameter, ingo@478: String artifactFactory ingo@478: ) { tim@71: super(); ingo@478: this.name = name; ingo@478: this.parameter = parameter; tim@71: this.artifactFactory = artifactFactory; tim@71: } tim@71: tim@71: /** ingo@815: * @return the name if this product. tim@71: */ tim@71: public String getName() { tim@71: return this.name; tim@71: } tim@71: tim@71: /** ingo@815: * @return the input data. tim@71: */ tim@71: public Collection getParameter() { tim@71: return this.parameter; tim@71: } tim@71: tim@71: /** ingo@815: * @return the artifact factory. tim@71: */ ingo@478: public String getArtifactFactory() { tim@71: return this.artifactFactory; tim@71: } tim@71: tim@71: } sascha@836: // vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :