1
2
3
4
5
6
7
8 package org.apache.maven.plugins.changes.model;
9
10
11
12
13
14
15
16
17 public class Component
18 implements java.io.Serializable
19 {
20
21
22
23
24
25
26
27
28
29
30 private String name;
31
32
33
34
35
36
37 private String description;
38
39
40
41
42 private java.util.List<Action> actions;
43
44
45
46
47
48
49
50
51
52
53
54 public void addAction( Action action )
55 {
56 if ( !(action instanceof Action) )
57 {
58 throw new ClassCastException( "Component.addActions(action) parameter must be instanceof " + Action.class.getName() );
59 }
60 getActions().add( action );
61 }
62
63
64
65
66
67
68 public java.util.List<Action> getActions()
69 {
70 if ( this.actions == null )
71 {
72 this.actions = new java.util.ArrayList<Action>();
73 }
74
75 return this.actions;
76 }
77
78
79
80
81
82
83 public String getDescription()
84 {
85 return this.description;
86 }
87
88
89
90
91
92
93 public String getName()
94 {
95 return this.name;
96 }
97
98
99
100
101
102
103 public void removeAction( Action action )
104 {
105 if ( !(action instanceof Action) )
106 {
107 throw new ClassCastException( "Component.removeActions(action) parameter must be instanceof " + Action.class.getName() );
108 }
109 getActions().remove( action );
110 }
111
112
113
114
115
116
117 public void setActions( java.util.List<Action> actions )
118 {
119 this.actions = actions;
120 }
121
122
123
124
125
126
127 public void setDescription( String description )
128 {
129 this.description = description;
130 }
131
132
133
134
135
136
137 public void setName( String name )
138 {
139 this.name = name;
140 }
141
142
143 }