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