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
45 public class ComponentsDefinition {
46
47 private String id;
48 private List<ComponentDefinition> components = new ArrayList<ComponentDefinition>();
49 private List<ConfigurerDefinition> configurers = new ArrayList<ConfigurerDefinition>();
50 private List<TypeMappingDefinition> typeMappings = new ArrayList<TypeMappingDefinition>();
51
52 public String getId() {
53 return id;
54 }
55
56 public void setId(String id) {
57 this.id = id;
58 }
59
60 public List<ComponentDefinition> getComponents() {
61 return components;
62 }
63
64 public void setComponents(List<ComponentDefinition> components) {
65 this.components = components;
66 }
67
68 public boolean addComponent(ComponentDefinition component) {
69 return components.add(component);
70 }
71
72 public List<ConfigurerDefinition> getConfigurers() {
73 return configurers;
74 }
75
76 public void setConfigurers(List<ConfigurerDefinition> configurers) {
77 this.configurers = configurers;
78 }
79
80 public boolean addConfigurer(ConfigurerDefinition configurerDefinition) {
81 return configurers.add(configurerDefinition);
82 }
83
84 public List<TypeMappingDefinition> getTypeMappings() {
85 return typeMappings;
86 }
87
88 public void setTypeMappings(List<TypeMappingDefinition> typeMappings) {
89 this.typeMappings = typeMappings;
90 }
91
92 public boolean addTypeMapping(TypeMappingDefinition typeMapping) {
93 return typeMappings.add(typeMapping);
94 }
95 }