Mercurial > dive4elements > river
comparison 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 |
comparison
equal
deleted
inserted
replaced
2736:8839086c4b7b | 2737:83b22ccf48da |
---|---|
1 package de.intevation.flys.themes; | |
2 | |
3 import java.util.Map; | |
4 | |
5 import org.w3c.dom.Document; | |
6 import org.w3c.dom.Node; | |
7 | |
8 | |
9 /** | |
10 * @author <a href="mailto:raimund.renkert@intevation.de">Raimund Renkert</a> | |
11 */ | |
12 public class ThemeGroup { | |
13 | |
14 protected String name; | |
15 | |
16 protected Map<String, Theme> themes; | |
17 | |
18 | |
19 public ThemeGroup(String name, Map<String, Theme> themes) { | |
20 this.name = name; | |
21 this.themes = themes; | |
22 } | |
23 | |
24 public String getName() { | |
25 return this.name; | |
26 } | |
27 | |
28 public Map<String, Theme> getThemes() { | |
29 return this.themes; | |
30 } | |
31 | |
32 public Theme getThemeByName(String name) { | |
33 return themes.get(name); | |
34 } | |
35 } |