view gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultOutputMode.java @ 700:89ade245ca7a

Using unix line endings only. gnv/trunk@940 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sun, 18 Apr 2010 09:27:11 +0000
parents af22fa5567a6
children d5d4dbda17cc
line wrap: on
line source
package de.intevation.gnv.artifactdatabase.objects;

import java.util.Collection;
import java.util.Map;

/**
 * The default implementation of an <code>OutputMode</code>.
 *
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 */
public class DefaultOutputMode implements OutputMode {

    /**
     * The UID of this Class.
     */
    private static final long serialVersionUID = 7487880486604174521L;

    private String name = null;

    private String mimeType = null;

    private Collection<OutputParameter> outputParameter = null;

    private Map<String, ExportMode> exports;

    public DefaultOutputMode(
        String name,
        String mimeType,
        Collection<OutputParameter> outputParameter,
        Map<String, ExportMode> exports)
    {
        super();
        this.name            = name;
        this.mimeType        = mimeType;
        this.outputParameter = outputParameter;
        this.exports         = exports;
    }

    public String getMimeType() {
        return this.mimeType;
    }

    public String getName() {
        return this.name;
    }

    public Collection<OutputParameter> getOutputParameters() {
        return this.outputParameter;
    }

    public ExportMode getExportMode(String mode) {
        return exports.get(mode);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8 :

http://dive4elements.wald.intevation.org