1 package org.apache.maven.index;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.ArrayList;
23 import java.util.List;
24
25
26
27
28
29
30 public class ScanningResult
31 {
32 private int totalFiles = 0;
33
34 private int deletedFiles = 0;
35
36 private List<Exception> exceptions = new ArrayList<Exception>();
37
38 private final ScanningRequest request;
39
40 public ScanningResult( ScanningRequest request )
41 {
42 this.request = request;
43 }
44
45 public void setTotalFiles( int totalFiles )
46 {
47 this.totalFiles = totalFiles;
48 }
49
50 public void setDeletedFiles( int deletedFiles )
51 {
52 this.deletedFiles = deletedFiles;
53 }
54
55 public int getTotalFiles()
56 {
57 return totalFiles;
58 }
59
60 public int getDeletedFiles()
61 {
62 return deletedFiles;
63 }
64
65 public void addException( Exception e )
66 {
67 exceptions.add( e );
68 }
69
70 public boolean hasExceptions()
71 {
72 return exceptions.size() != 0;
73 }
74
75 public List<Exception> getExceptions()
76 {
77 return exceptions;
78 }
79
80 public ScanningRequest getRequest()
81 {
82 return request;
83 }
84
85 }