view gnv/src/main/java/de/intevation/gnv/action/sessionmodel/DiagrammOptions.java @ 954:a88fc6320cf8

Add more Javadocs gnv/trunk@1098 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Tue, 18 May 2010 09:11:31 +0000
parents 89ade245ca7a
children 3549253ecd7b
line wrap: on
line source
package de.intevation.gnv.action.sessionmodel;

import java.util.HashMap;
import java.util.Map;

/**
 * Stores key-value pairs used to save user input for changing diagram
 * attributes.
 *
 * @author <a href="mailto:tim.englich@intevation.de">Tim Englich</a>
 */
public class DiagrammOptions {

    private Map<String, String> values = new HashMap<String, String>();

    /**
     * Constructor
     */
    public DiagrammOptions() {
        super();
    }

    /**
     * Returns the Value to a given Key
     * @param The key of the value that should be returned.
     * @return the value.
     */
    public String getValue(String key) {
        return this.values.get(key);
    }


    /**
     * Set a value with the given key.
     *
     * @param key The given key.
     * @param value The value to be stored.
     */
    public void setValue(String key, String value) {
        this.values.put(key, value);
    }
}
// vim:set ts=4 sw=4 si et sta sts=4 fenc=utf-8 :

http://dive4elements.wald.intevation.org