1 package org.apache.maven.plugins.dependency.utils;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.util.LinkedHashSet;
23 import java.util.Set;
24
25 import org.apache.maven.artifact.Artifact;
26
27
28
29
30 public class DependencyStatusSets
31 {
32 Set<Artifact> resolvedDependencies = null;
33
34 Set<Artifact> unResolvedDependencies = null;
35
36 Set<Artifact> skippedDependencies = null;
37
38
39
40
41 public DependencyStatusSets()
42 {
43
44 }
45
46
47
48
49
50
51 public DependencyStatusSets( Set<Artifact> resolved, Set<Artifact> unResolved, Set<Artifact> skipped )
52 {
53 if ( resolved != null )
54 {
55 this.resolvedDependencies = new LinkedHashSet<Artifact>( resolved );
56 }
57 if ( unResolved != null )
58 {
59 this.unResolvedDependencies = new LinkedHashSet<Artifact>( unResolved );
60 }
61 if ( skipped != null )
62 {
63 this.skippedDependencies = new LinkedHashSet<Artifact>( skipped );
64 }
65 }
66
67
68
69
70 public Set<Artifact> getResolvedDependencies()
71 {
72 return this.resolvedDependencies;
73 }
74
75
76
77
78 public void setResolvedDependencies( Set<Artifact> resolvedDependencies )
79 {
80 if ( resolvedDependencies != null )
81 {
82 this.resolvedDependencies = new LinkedHashSet<Artifact>( resolvedDependencies );
83 }
84 else
85 {
86 this.resolvedDependencies = null;
87 }
88 }
89
90
91
92
93 public Set<Artifact> getSkippedDependencies()
94 {
95 return this.skippedDependencies;
96 }
97
98
99
100
101 public void setSkippedDependencies( Set<Artifact> skippedDependencies )
102 {
103 if ( skippedDependencies != null )
104 {
105 this.skippedDependencies = new LinkedHashSet<Artifact>( skippedDependencies );
106 }
107 else
108 {
109 this.skippedDependencies = null;
110 }
111 }
112
113
114
115
116 public Set<Artifact> getUnResolvedDependencies()
117 {
118 return this.unResolvedDependencies;
119 }
120
121
122
123
124 public void setUnResolvedDependencies( Set<Artifact> unResolvedDependencies )
125 {
126 if ( unResolvedDependencies != null )
127 {
128 this.unResolvedDependencies = new LinkedHashSet<Artifact>( unResolvedDependencies );
129 }
130 else
131 {
132 this.unResolvedDependencies = null;
133 }
134 }
135 }