Class ModuleReport
java.lang.Object
com.guinetik.terminaljavadocs.plugin.ModuleReport
Data transfer object representing a Maven module's report metadata.
Used by GenerateLandingPagesMojo to collect information about modules
that have generated reports (coverage, xref) and render them into landing pages.
Example usage:
ModuleReport report = new ModuleReport(
"my-module",
"Core utilities library",
"my-module"
);
// Use in template: report.getArtifactId() -> "my-module"
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionModuleReport(String artifactId, String description, String relativePath) Creates a new module report with the specified metadata. -
Method Summary
Modifier and TypeMethodDescriptionReturns the Maven artifact ID of this module.Returns the module's description from its pom.xml.Returns the relative path from the landing page to this module's report directory.
-
Constructor Details
-
ModuleReport
Creates a new module report with the specified metadata.- Parameters:
artifactId- the Maven artifact ID of the module (e.g., "my-module")description- the module's description from pom.xml, may benullrelativePath- the relative path from the landing page to this module's reports
-
-
Method Details
-
getArtifactId
Returns the Maven artifact ID of this module.- Returns:
- the artifact ID, never
null
-
getDescription
Returns the module's description from its pom.xml.- Returns:
- the description, or
nullif not specified in the POM
-
getRelativePath
Returns the relative path from the landing page to this module's report directory.This path is used to construct links in the generated landing pages, e.g.,
./my-module/jacoco/index.html.- Returns:
- the relative path to the module's reports
-