Mercurial > dive4elements > river
view flys-client/src/main/java/de/intevation/flys/client/shared/model/OutputSettings.java @ 1439:4df2d9a4b9b4
Added interfaces and container for output settings.
Added settings container to collection.
Extract settings from describe collection document.
flys-client/trunk@3420 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 15 Dec 2011 08:29:04 +0000 |
parents | |
children | 8da36efc839a |
line wrap: on
line source
package de.intevation.flys.client.shared.model; import java.io.Serializable; import java.util.HashMap; import java.util.List; import java.util.ArrayList; /** * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> */ public class OutputSettings implements Settings { /** The output name. */ protected String name; /** The categories and settings container. */ protected HashMap<String, List<Property> > categories; public OutputSettings() { this.categories = new HashMap<String, List<Property> >(); } public OutputSettings(String name) { this.name = name; this.categories = new HashMap<String, List<Property> >(); } public void setName(String name) { this.name = name; } public String getName() { return this.name; } public void setSettings(String category, List<Property> settings) { this.categories.put(category, settings); } public List<Property> getSettings(String category) { return categories.get(category); } public List getCategories() { ArrayList<String> list = new ArrayList<String>(categories.keySet()); return list; } }