1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34 package info.magnolia.module.model;
35
36 import java.util.ArrayList;
37 import java.util.List;
38
39
40
41
42
43
44 public class ComponentsDefinition {
45
46 private String id;
47 private List<ComponentDefinition> components = new ArrayList<ComponentDefinition>();
48 private List<ConfigurerDefinition> configurers = new ArrayList<ConfigurerDefinition>();
49 private List<TypeMappingDefinition> typeMappings = new ArrayList<TypeMappingDefinition>();
50
51 public String getId() {
52 return id;
53 }
54
55 public void setId(String id) {
56 this.id = id;
57 }
58
59 public List<ComponentDefinition> getComponents() {
60 return components;
61 }
62
63 public void setComponents(List<ComponentDefinition> components) {
64 this.components = components;
65 }
66
67 public boolean addComponent(ComponentDefinition component) {
68 return components.add(component);
69 }
70
71 public List<ConfigurerDefinition> getConfigurers() {
72 return configurers;
73 }
74
75 public void setConfigurers(List<ConfigurerDefinition> configurers) {
76 this.configurers = configurers;
77 }
78
79 public boolean addConfigurer(ConfigurerDefinition configurerDefinition) {
80 return configurers.add(configurerDefinition);
81 }
82
83 public List<TypeMappingDefinition> getTypeMappings() {
84 return typeMappings;
85 }
86
87 public void setTypeMappings(List<TypeMappingDefinition> typeMappings) {
88 this.typeMappings = typeMappings;
89 }
90
91 public boolean addTypeMapping(TypeMappingDefinition typeMapping) {
92 return typeMappings.add(typeMapping);
93 }
94 }