1
2
3
4
5
6
7
8 package org.apache.maven.model;
9
10
11
12
13
14
15
16
17
18
19
20
21 @SuppressWarnings( "all" )
22 public class CiManagement
23 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
24 {
25
26
27
28
29
30
31
32
33
34
35
36
37
38 private String system;
39
40
41
42
43
44
45 private String url;
46
47
48
49
50 private java.util.List<Notifier> notifiers;
51
52
53
54
55 private java.util.Map<Object, InputLocation> locations;
56
57
58
59
60
61
62
63
64
65
66
67 public void addNotifier( Notifier notifier )
68 {
69 getNotifiers().add( notifier );
70 }
71
72
73
74
75
76
77 public CiManagement clone()
78 {
79 try
80 {
81 CiManagement copy = (CiManagement) super.clone();
82
83 if ( this.notifiers != null )
84 {
85 copy.notifiers = new java.util.ArrayList<Notifier>();
86 for ( Notifier item : this.notifiers )
87 {
88 copy.notifiers.add( ( (Notifier) item).clone() );
89 }
90 }
91
92 if ( copy.locations != null )
93 {
94 copy.locations = new java.util.LinkedHashMap( copy.locations );
95 }
96
97 return copy;
98 }
99 catch ( java.lang.Exception ex )
100 {
101 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
102 + " does not support clone()" ).initCause( ex );
103 }
104 }
105
106
107
108
109
110
111
112 public InputLocation getLocation( Object key )
113 {
114 return ( locations != null ) ? locations.get( key ) : null;
115 }
116
117
118
119
120
121
122 public java.util.List<Notifier> getNotifiers()
123 {
124 if ( this.notifiers == null )
125 {
126 this.notifiers = new java.util.ArrayList<Notifier>();
127 }
128
129 return this.notifiers;
130 }
131
132
133
134
135
136
137
138 public String getSystem()
139 {
140 return this.system;
141 }
142
143
144
145
146
147
148
149
150 public String getUrl()
151 {
152 return this.url;
153 }
154
155
156
157
158
159
160 public void removeNotifier( Notifier notifier )
161 {
162 getNotifiers().remove( notifier );
163 }
164
165
166
167
168
169
170
171 public void setLocation( Object key, InputLocation location )
172 {
173 if ( location != null )
174 {
175 if ( this.locations == null )
176 {
177 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
178 }
179 this.locations.put( key, location );
180 }
181 }
182
183
184
185
186
187
188
189
190
191 public void setNotifiers( java.util.List<Notifier> notifiers )
192 {
193 this.notifiers = notifiers;
194 }
195
196
197
198
199
200
201
202 public void setSystem( String system )
203 {
204 this.system = system;
205 }
206
207
208
209
210
211
212
213
214 public void setUrl( String url )
215 {
216 this.url = url;
217 }
218
219 }