1 /*
2 Licensed to the Apache Software Foundation (ASF) under one
3 or more contributor license agreements. See the NOTICE file
4 distributed with this work for additional information
5 regarding copyright ownership. The ASF licenses this file
6 to you under the Apache License, Version 2.0 (the
7 "License"); you may not use this file except in compliance
8 with the License. You may obtain a copy of the License at
9
10 http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing,
13 software distributed under the License is distributed on an
14 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 KIND, either express or implied. See the License for the
16 specific language governing permissions and limitations
17 under the License.
18 =================== DO NOT EDIT THIS FILE ====================
19 Generated by Modello 2.4.0,
20 any modifications will be overwritten.
21 ==============================================================
22 */
23
24 package org.apache.maven.plugins.changes.model;
25
26 /**
27 *
28 * A component as a part of current release.
29 *
30 *
31 * @version $Revision$ $Date$
32 */
33 @SuppressWarnings( "all" )
34 public class Component
35 implements java.io.Serializable
36 {
37
38 //--------------------------/
39 //- Class/Member Variables -/
40 //--------------------------/
41
42 /**
43 *
44 * The component name.
45 *
46 */
47 private String name;
48
49 /**
50 *
51 * The component description.
52 *
53 */
54 private String description;
55
56 /**
57 * Field actions.
58 */
59 private java.util.List<Action> actions;
60
61
62 //-----------/
63 //- Methods -/
64 //-----------/
65
66 /**
67 * Method addAction.
68 *
69 * @param action a action object.
70 */
71 public void addAction( Action action )
72 {
73 getActions().add( action );
74 } //-- void addAction( Action )
75
76 /**
77 * Method getActions.
78 *
79 * @return List
80 */
81 public java.util.List<Action> getActions()
82 {
83 if ( this.actions == null )
84 {
85 this.actions = new java.util.ArrayList<Action>();
86 }
87
88 return this.actions;
89 } //-- java.util.List<Action> getActions()
90
91 /**
92 * Get the component description.
93 *
94 * @return String
95 */
96 public String getDescription()
97 {
98 return this.description;
99 } //-- String getDescription()
100
101 /**
102 * Get the component name.
103 *
104 * @return String
105 */
106 public String getName()
107 {
108 return this.name;
109 } //-- String getName()
110
111 /**
112 * Method removeAction.
113 *
114 * @param action a action object.
115 */
116 public void removeAction( Action action )
117 {
118 getActions().remove( action );
119 } //-- void removeAction( Action )
120
121 /**
122 * Set the list of actions for this component.
123 *
124 * @param actions a actions object.
125 */
126 public void setActions( java.util.List<Action> actions )
127 {
128 this.actions = actions;
129 } //-- void setActions( java.util.List )
130
131 /**
132 * Set the component description.
133 *
134 * @param description a description object.
135 */
136 public void setDescription( String description )
137 {
138 this.description = description;
139 } //-- void setDescription( String )
140
141 /**
142 * Set the component name.
143 *
144 * @param name a name object.
145 */
146 public void setName( String name )
147 {
148 this.name = name;
149 } //-- void setName( String )
150
151 }