1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.project;
20
21 import java.util.ArrayList;
22 import java.util.List;
23
24
25
26
27
28
29
30 public class ExtensionDescriptor {
31
32 private List<String> exportedPackages;
33
34 private List<String> exportedArtifacts;
35
36 ExtensionDescriptor() {
37
38 }
39
40 public List<String> getExportedPackages() {
41 if (exportedPackages == null) {
42 exportedPackages = new ArrayList<>();
43 }
44
45 return exportedPackages;
46 }
47
48 public void setExportedPackages(List<String> exportedPackages) {
49 if (exportedPackages == null) {
50 this.exportedPackages = null;
51 } else {
52 this.exportedPackages = new ArrayList<>(exportedPackages);
53 }
54 }
55
56 public List<String> getExportedArtifacts() {
57 if (exportedArtifacts == null) {
58 exportedArtifacts = new ArrayList<>();
59 }
60
61 return exportedArtifacts;
62 }
63
64 public void setExportedArtifacts(List<String> exportedArtifacts) {
65 if (exportedArtifacts == null) {
66 this.exportedArtifacts = null;
67 } else {
68 this.exportedArtifacts = new ArrayList<>(exportedArtifacts);
69 }
70 }
71 }