1 package de.matthias_burbach.mosaique.core.model;
2
3 import java.util.HashMap;
4 import java.util.Map;
5
6 /***
7 * Is the internal representation of a Tiles definitions XML file.
8 *
9 * @author Matthias Burbach
10 */
11 public class TilesDefinitions {
12 /***
13 * The name of this Tiles definitions file.
14 */
15 private String name;
16
17 /***
18 * The definitions of type {@link Definition} defined in this Tiles
19 * definitions file keyed by their names of type {@link String}.
20 */
21 private Map definitionsByName = new HashMap();
22
23 /***
24 * @return The definitions of type {@link Definition} defined in this Tiles
25 * definitions file keyed by their names of type {@link String}.
26 */
27 public Map getDefinitionsByName() {
28 return definitionsByName;
29 }
30
31 /***
32 * @param definitionsByName The definitions of type {@link Definition}
33 * defined in this Tiles definitions file keyed by
34 * their names of type {@link String}.
35 */
36 public void setDefinitionsByName(final Map definitionsByName) {
37 this.definitionsByName = definitionsByName;
38 }
39
40 /***
41 * @return The name of this Tiles definitions file.
42 */
43 public String getName() {
44 return name;
45 }
46
47 /***
48 * @param name The name of this Tiles definitions file.
49 */
50 public void setName(final String name) {
51 this.name = name;
52 }
53 }