view gnv/src/main/java/de/intevation/gnv/artifactdatabase/objects/DefaultOutputMode.java @ 681:15ac78a91d1b

Removed trailing whitespace. gnv/trunk@852 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 29 Mar 2010 08:04:15 +0000
parents bd67164cf28b
children d49e8695786c
line wrap: on
line source
/**
 *
 */
package de.intevation.gnv.artifactdatabase.objects;

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

/**
 * @author Tim Englich <tim.englich@intevation.de>
 *
 */
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;
    }

    /**
     * @see de.intevation.gnv.artifactdatabase.objects.OutputMode#getMimeType()
     */
    public String getMimeType() {
        return this.mimeType;
    }

    /**
     * @see de.intevation.gnv.artifactdatabase.objects.OutputMode#getName()
     */
    public String getName() {
        return this.name;
    }

    /**
     * @see de.intevation.gnv.artifactdatabase.objects.OutputMode#getOutputParameters()
     */
    public Collection<OutputParameter> getOutputParameters() {
        return this.outputParameter;
    }

    public ExportMode getExportMode(String mode) {
        return exports.get(mode);
    }
}

http://dive4elements.wald.intevation.org