1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.maven.plugins.javadoc;
20
21 import java.io.File;
22 import java.nio.file.Path;
23 import java.util.Collection;
24
25 import org.codehaus.plexus.languages.java.jpms.JavaModuleDescriptor;
26 import org.codehaus.plexus.languages.java.jpms.ModuleNameSource;
27
28
29
30
31
32
33 public class JavadocModule {
34 private final String ga;
35
36 private final File artifactFile;
37
38 private final Collection<Path> sourcePaths;
39
40 private final JavaModuleDescriptor moduleDescriptor;
41
42 private final ModuleNameSource moduleNameSource;
43
44 public JavadocModule(String ga, File artifactFile, Collection<Path> sourcePaths) {
45 this(ga, artifactFile, sourcePaths, null, null);
46 }
47
48 public JavadocModule(
49 String ga,
50 File artifactFile,
51 Collection<Path> sourcePaths,
52 JavaModuleDescriptor moduleDescriptor,
53 ModuleNameSource moduleNameSource) {
54 this.ga = ga;
55 this.artifactFile = artifactFile;
56 this.sourcePaths = sourcePaths;
57 this.moduleDescriptor = moduleDescriptor;
58 this.moduleNameSource = moduleNameSource;
59 }
60
61 public String getGa() {
62 return ga;
63 }
64
65 public Collection<Path> getSourcePaths() {
66 return sourcePaths;
67 }
68
69 public File getArtifactFile() {
70 return artifactFile;
71 }
72
73 public JavaModuleDescriptor getModuleDescriptor() {
74 return moduleDescriptor;
75 }
76
77 public ModuleNameSource getModuleNameSource() {
78 return moduleNameSource;
79 }
80 }