1 package org.apache.maven.plugin.verifier;
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 import org.apache.maven.plugin.verifier.model.File;
26
27
28
29
30 public class VerificationResult
31 {
32 private List<File> existenceFailures = new ArrayList<File>();
33
34 private List<File> nonExistenceFailures = new ArrayList<File>();
35
36 private List<File> contentFailures = new ArrayList<File>();
37
38
39
40
41 public void addExistenceFailure( File file )
42 {
43 existenceFailures.add( file );
44 }
45
46
47
48
49
50
51 public void addNonExistenceFailure( File file )
52 {
53 nonExistenceFailures.add( file );
54 }
55
56
57
58
59
60
61 public void addContentFailure( File file )
62 {
63 contentFailures.add( file );
64 }
65
66
67
68
69 public List<File> getExistenceFailures()
70 {
71 return existenceFailures;
72 }
73
74
75
76
77 public List<File> getNonExistenceFailures()
78 {
79 return nonExistenceFailures;
80 }
81
82
83
84
85 public List<File> getContentFailures()
86 {
87 return contentFailures;
88 }
89
90
91
92
93 public boolean hasFailures()
94 {
95 return !getExistenceFailures().isEmpty() || !getNonExistenceFailures().isEmpty()
96 || !getContentFailures().isEmpty();
97 }
98 }