1
2
3
4
5
6 package org.apache.maven.model;
7
8
9
10
11
12
13
14 @SuppressWarnings( "all" )
15 public class Notifier
16 implements java.io.Serializable, java.lang.Cloneable, org.apache.maven.model.InputLocationTracker
17 {
18
19
20
21
22
23
24
25
26 private String type = "mail";
27
28
29
30
31 private boolean sendOnError = true;
32
33
34
35
36 private boolean sendOnFailure = true;
37
38
39
40
41 private boolean sendOnSuccess = true;
42
43
44
45
46 private boolean sendOnWarning = true;
47
48
49
50
51
52
53
54
55
56 private String address;
57
58
59
60
61 private java.util.Properties configuration;
62
63
64
65
66 private java.util.Map<Object, InputLocation> locations;
67
68
69
70
71
72
73
74
75
76
77
78
79 public void addConfiguration( String key, String value )
80 {
81 getConfiguration().put( key, value );
82 }
83
84
85
86
87
88
89 public Notifier clone()
90 {
91 try
92 {
93 Notifier copy = (Notifier) super.clone();
94
95 if ( this.configuration != null )
96 {
97 copy.configuration = (java.util.Properties) this.configuration.clone();
98 }
99
100 if ( copy.locations != null )
101 {
102 copy.locations = new java.util.LinkedHashMap( copy.locations );
103 }
104
105 return copy;
106 }
107 catch ( java.lang.Exception ex )
108 {
109 throw (java.lang.RuntimeException) new java.lang.UnsupportedOperationException( getClass().getName()
110 + " does not support clone()" ).initCause( ex );
111 }
112 }
113
114
115
116
117
118
119
120 public String getAddress()
121 {
122 return this.address;
123 }
124
125
126
127
128
129
130 public java.util.Properties getConfiguration()
131 {
132 if ( this.configuration == null )
133 {
134 this.configuration = new java.util.Properties();
135 }
136
137 return this.configuration;
138 }
139
140
141
142
143
144
145
146 public InputLocation getLocation( Object key )
147 {
148 return ( locations != null ) ? locations.get( key ) : null;
149 }
150
151
152
153
154
155
156 public String getType()
157 {
158 return this.type;
159 }
160
161
162
163
164
165
166 public boolean isSendOnError()
167 {
168 return this.sendOnError;
169 }
170
171
172
173
174
175
176 public boolean isSendOnFailure()
177 {
178 return this.sendOnFailure;
179 }
180
181
182
183
184
185
186 public boolean isSendOnSuccess()
187 {
188 return this.sendOnSuccess;
189 }
190
191
192
193
194
195
196 public boolean isSendOnWarning()
197 {
198 return this.sendOnWarning;
199 }
200
201
202
203
204
205
206
207 public void setAddress( String address )
208 {
209 this.address = address;
210 }
211
212
213
214
215
216
217
218 public void setConfiguration( java.util.Properties configuration )
219 {
220 this.configuration = configuration;
221 }
222
223
224
225
226
227
228
229 public void setLocation( Object key, InputLocation location )
230 {
231 if ( location != null )
232 {
233 if ( this.locations == null )
234 {
235 this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
236 }
237 this.locations.put( key, location );
238 }
239 }
240
241
242
243
244
245
246 public void setSendOnError( boolean sendOnError )
247 {
248 this.sendOnError = sendOnError;
249 }
250
251
252
253
254
255
256 public void setSendOnFailure( boolean sendOnFailure )
257 {
258 this.sendOnFailure = sendOnFailure;
259 }
260
261
262
263
264
265
266 public void setSendOnSuccess( boolean sendOnSuccess )
267 {
268 this.sendOnSuccess = sendOnSuccess;
269 }
270
271
272
273
274
275
276 public void setSendOnWarning( boolean sendOnWarning )
277 {
278 this.sendOnWarning = sendOnWarning;
279 }
280
281
282
283
284
285
286 public void setType( String type )
287 {
288 this.type = type;
289 }
290
291 }