|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.util.report.link.ExternalReport
public class ExternalReport
Helper to construct links from a given report instance to other Maven reports.
Field Summary | |
---|---|
protected ReportId |
reportId The report ID this strategy is constructed for. |
Constructor Summary | |
---|---|
ExternalReport(ReportId reportId, String basePath, LinkConstructorStrategy strategy) Default constructor. |
Method Summary | |
---|---|
String |
constructLink(JavaElementRef ref) Constructs a link to the given Java Element. |
String |
constructLink(String packageName, String typeName, de.smartics.util.source.MethodInfo method) Constructs a link to the given Java element. |
String |
getBasePath() Returns the base path to the report to prefix the constructed link. |
String |
getLabelKey() Returns the key to the label to use as a label for the rendered link. |
ReportId |
getReportId() Returns the report ID this strategy is constructed for. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final ReportId reportId
Constructor Detail |
---|
public ExternalReport(ReportId reportId, String basePath, LinkConstructorStrategy strategy) throws IllegalArgumentException
reportId
- the report ID this strategy is constructed for.
basePath
- the base path to the report to prefix the constructed link.
strategy
- the strategy to construct the link suffix to the base path.
IllegalArgumentException
- if
helper
or
reportLocation
is
null
or
reportArtifactId
is blank.
Method Detail |
---|
public ReportId getReportId()
public String getBasePath()
public String constructLink(String packageName, String typeName, de.smartics.util.source.MethodInfo method)
packageName
- packageName the name of the package.
typeName
- typeName the name of the Java type.
method
- the test method to link to.
public String constructLink(JavaElementRef ref)
ref
- the element to link to.
public String getLabelKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |