1 package org.apache.archiva.model;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 @SuppressWarnings( "all" )
28 public class ArchivaArtifactModel
29 implements java.io.Serializable
30 {
31
32
33
34
35
36
37
38
39
40
41 private String groupId;
42
43
44
45
46
47
48 private String artifactId;
49
50
51
52
53
54
55 private String version;
56
57
58
59
60
61
62 private String classifier;
63
64
65
66
67
68
69 private String type;
70
71
72
73
74
75
76 private String repositoryId;
77
78
79
80
81
82
83 private boolean snapshot = false;
84
85
86
87
88
89
90 private String checksumMD5;
91
92
93
94
95
96
97 private String checksumSHA1;
98
99
100
101
102
103
104 private java.util.Date lastModified;
105
106
107
108
109
110
111 private long size = 0L;
112
113
114
115
116
117
118
119 private java.util.Date whenGathered;
120
121
122
123
124
125
126
127
128
129
130
131
132 public boolean equals( Object other )
133 {
134 if ( this == other )
135 {
136 return true;
137 }
138
139 if ( !( other instanceof ArchivaArtifactModel ) )
140 {
141 return false;
142 }
143
144 ArchivaArtifactModelorg/apache/archiva/model/ArchivaArtifactModel.html#ArchivaArtifactModel">ArchivaArtifactModel that = (ArchivaArtifactModel) other;
145 boolean result = true;
146
147 result = result && ( getGroupId() == null ? that.getGroupId() == null : getGroupId().equals( that.getGroupId() ) );
148 result = result && ( getArtifactId() == null ? that.getArtifactId() == null : getArtifactId().equals( that.getArtifactId() ) );
149 result = result && ( getVersion() == null ? that.getVersion() == null : getVersion().equals( that.getVersion() ) );
150 result = result && ( getClassifier() == null ? that.getClassifier() == null : getClassifier().equals( that.getClassifier() ) );
151 result = result && ( getType() == null ? that.getType() == null : getType().equals( that.getType() ) );
152 result = result && ( getRepositoryId() == null ? that.getRepositoryId() == null : getRepositoryId().equals( that.getRepositoryId() ) );
153
154 return result;
155 }
156
157
158
159
160
161
162 public String getArtifactId()
163 {
164 return this.artifactId;
165 }
166
167
168
169
170
171
172 public String getChecksumMD5()
173 {
174 return this.checksumMD5;
175 }
176
177
178
179
180
181
182 public String getChecksumSHA1()
183 {
184 return this.checksumSHA1;
185 }
186
187
188
189
190
191
192 public String getClassifier()
193 {
194 return this.classifier;
195 }
196
197
198
199
200
201
202 public String getGroupId()
203 {
204 return this.groupId;
205 }
206
207
208
209
210
211
212 public java.util.Date getLastModified()
213 {
214 return this.lastModified;
215 }
216
217
218
219
220
221
222 public String getRepositoryId()
223 {
224 return this.repositoryId;
225 }
226
227
228
229
230
231
232 public long getSize()
233 {
234 return this.size;
235 }
236
237
238
239
240
241
242 public String getType()
243 {
244 return this.type;
245 }
246
247
248
249
250
251
252 public String getVersion()
253 {
254 return this.version;
255 }
256
257
258
259
260
261
262
263 public java.util.Date getWhenGathered()
264 {
265 return this.whenGathered;
266 }
267
268
269
270
271
272
273 public int hashCode()
274 {
275 int result = 17;
276
277 result = 37 * result + ( groupId != null ? groupId.hashCode() : 0 );
278 result = 37 * result + ( artifactId != null ? artifactId.hashCode() : 0 );
279 result = 37 * result + ( version != null ? version.hashCode() : 0 );
280 result = 37 * result + ( classifier != null ? classifier.hashCode() : 0 );
281 result = 37 * result + ( type != null ? type.hashCode() : 0 );
282 result = 37 * result + ( repositoryId != null ? repositoryId.hashCode() : 0 );
283
284 return result;
285 }
286
287
288
289
290
291
292 public boolean isSnapshot()
293 {
294 return this.snapshot;
295 }
296
297
298
299
300
301
302 public void setArtifactId( String artifactId )
303 {
304 this.artifactId = artifactId;
305 }
306
307
308
309
310
311
312 public void setChecksumMD5( String checksumMD5 )
313 {
314 this.checksumMD5 = checksumMD5;
315 }
316
317
318
319
320
321
322 public void setChecksumSHA1( String checksumSHA1 )
323 {
324 this.checksumSHA1 = checksumSHA1;
325 }
326
327
328
329
330
331
332 public void setClassifier( String classifier )
333 {
334 this.classifier = classifier;
335 }
336
337
338
339
340
341
342 public void setGroupId( String groupId )
343 {
344 this.groupId = groupId;
345 }
346
347
348
349
350
351
352 public void setLastModified( java.util.Date lastModified )
353 {
354 this.lastModified = lastModified;
355 }
356
357
358
359
360
361
362 public void setRepositoryId( String repositoryId )
363 {
364 this.repositoryId = repositoryId;
365 }
366
367
368
369
370
371
372 public void setSize( long size )
373 {
374 this.size = size;
375 }
376
377
378
379
380
381
382 public void setSnapshot( boolean snapshot )
383 {
384 this.snapshot = snapshot;
385 }
386
387
388
389
390
391
392 public void setType( String type )
393 {
394 this.type = type;
395 }
396
397
398
399
400
401
402 public void setVersion( String version )
403 {
404 this.version = version;
405 }
406
407
408
409
410
411
412
413 public void setWhenGathered( java.util.Date whenGathered )
414 {
415 this.whenGathered = whenGathered;
416 }
417
418
419
420
421
422
423 public java.lang.String toString()
424 {
425 StringBuilder buf = new StringBuilder( 128 );
426
427 buf.append( "groupId = '" );
428 buf.append( getGroupId() );
429 buf.append( "'" );
430 buf.append( "\n" );
431 buf.append( "artifactId = '" );
432 buf.append( getArtifactId() );
433 buf.append( "'" );
434 buf.append( "\n" );
435 buf.append( "version = '" );
436 buf.append( getVersion() );
437 buf.append( "'" );
438 buf.append( "\n" );
439 buf.append( "classifier = '" );
440 buf.append( getClassifier() );
441 buf.append( "'" );
442 buf.append( "\n" );
443 buf.append( "type = '" );
444 buf.append( getType() );
445 buf.append( "'" );
446 buf.append( "\n" );
447 buf.append( "repositoryId = '" );
448 buf.append( getRepositoryId() );
449 buf.append( "'" );
450
451 return buf.toString();
452 }
453
454
455 private static final long serialVersionUID = -6292417108113887384L;
456
457 }