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