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
31 public class ExtensionDescriptor {
32
33 private List<String> exportedPackages;
34
35 private List<String> exportedArtifacts;
36
37 ExtensionDescriptor() {
38
39 }
40
41 public List<String> getExportedPackages() {
42 if (exportedPackages == null) {
43 exportedPackages = new ArrayList<>();
44 }
45
46 return exportedPackages;
47 }
48
49 public void setExportedPackages(List<String> exportedPackages) {
50 if (exportedPackages == null) {
51 this.exportedPackages = null;
52 } else {
53 this.exportedPackages = new ArrayList<>(exportedPackages);
54 }
55 }
56
57 public List<String> getExportedArtifacts() {
58 if (exportedArtifacts == null) {
59 exportedArtifacts = new ArrayList<>();
60 }
61
62 return exportedArtifacts;
63 }
64
65 public void setExportedArtifacts(List<String> exportedArtifacts) {
66 if (exportedArtifacts == null) {
67 this.exportedArtifacts = null;
68 } else {
69 this.exportedArtifacts = new ArrayList<>(exportedArtifacts);
70 }
71 }
72 }