view flys-artifacts/src/main/java/de/intevation/flys/themes/ThemeGroup.java @ 2737:83b22ccf48da

Introduced theme groups and added new service to get themes filtered by name. flys-artifacts/trunk@4470 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 23 May 2012 08:46:45 +0000
parents
children 2f7fed1eb4bf
line wrap: on
line source
package de.intevation.flys.themes;

import java.util.Map;

import org.w3c.dom.Document;
import org.w3c.dom.Node;


/**
 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a>
 */
public class ThemeGroup {

    protected String name;

    protected Map<String, Theme> themes;


    public ThemeGroup(String name, Map<String, Theme> themes) {
        this.name = name;
        this.themes = themes;
    }

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

    public Map<String, Theme> getThemes() {
        return this.themes;
    }

    public Theme getThemeByName(String name) {
        return themes.get(name);
    }
}

http://dive4elements.wald.intevation.org