Tabnine Logo
ExternalReport
Code IndexAdd Tabnine to your IDE (free)

How to use
ExternalReport
in
de.smartics.maven.util.report.link

Best Java code snippets using de.smartics.maven.util.report.link.ExternalReport (Showing top 7 results out of 315)

origin: de.smartics.util/smartics-maven-utils

/**
 * Constructs a link to the given Java element.
 *
 * @param packageName packageName the name of the package.
 * @param typeName typeName the name of the Java type.
 * @param method the test method to link to.
 * @return the requested relative link.
 */
public String constructLink(final String packageName, final String typeName,
  final MethodInfo method)
{
 final JavaElementRef ref =
   new JavaElementRef(packageName, typeName, method);
 return constructLink(ref);
}
origin: de.smartics.util/smartics-maven-utils

/**
 * Default constructor.
 *
 * @param reportId the report ID this strategy is constructed for.
 * @param basePath the base path to the report to prefix the constructed link.
 * @param strategy the strategy to construct the link suffix to the base path.
 * @throws IllegalArgumentException if <code>helper</code> or
 *           <code>reportLocation</code> is <code>null</code> or
 *           <code>reportArtifactId</code> is blank.
 */
public ExternalReport(final ReportId reportId, final String basePath,
  final LinkConstructorStrategy strategy) throws IllegalArgumentException
{
 checkArguments(reportId, basePath, strategy);
 this.reportId = reportId;
 this.basePath = basePath;
 this.strategy = strategy;
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

protected void renderReports(final Type type,
  final List<ExternalReport> reports, final TestMethodDoc testMethod)
 throws XMLStreamException
{
 if (!reports.isEmpty())
 {
  xmlWriter.writeStartElement(TESTDOC_NS, "reports");
  for (final ExternalReport report : reports)
  {
   xmlWriter.writeStartElement(TESTDOC_NS, "report");
   final String messageKey = report.getLabelKey();
   final String label = messages.getLabel(messageKey);
   writeElement("name", label);
   final String link =
     report.constructLink(type.getPackageName(), type.getTypeName(),
       testMethod);
   writeElement("link", link);
   xmlWriter.writeEndElement();
  }
  xmlWriter.writeEndElement();
 }
}
origin: de.smartics.util/smartics-maven-utils

/**
 * {@inheritDoc}
 */
public ExternalReport createExternalReport(final ReportId reportId,
  final LinkConstructorStrategy strategy)
{
 if (reportId == null)
 {
  throw new IllegalArgumentException("The report ID is required.");
 }
 if (strategy == null)
 {
  throw new IllegalArgumentException(
    "The link construction strategy is required.");
 }
 final String reportBasePath =
   createRelativeReportLocationLink(reportId, strategy);
 if (reportBasePath != null)
 {
  return new ExternalReport(reportId, reportBasePath, strategy);
 }
 else
 {
  return null;
 }
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

protected void renderReports(final Type type,
  final List<ExternalReport> reports, final TestMethodDoc testMethod)
 throws XMLStreamException
{
 if (!reports.isEmpty())
 {
  xmlWriter.writeStartElement(TESTDOC_NS, "reports");
  for (final ExternalReport report : reports)
  {
   xmlWriter.writeStartElement(TESTDOC_NS, "report");
   final String messageKey = report.getLabelKey();
   final String label = messages.getLabel(messageKey);
   writeElement("name", label);
   final String link =
     report.constructLink(type.getPackageName(), type.getTypeName(),
       testMethod);
   writeElement("link", link);
   xmlWriter.writeEndElement();
  }
  xmlWriter.writeEndElement();
 }
}
origin: de.smartics.testdoc/maven-testdoc-report-plugin

void renderTestMethodLink(final ExternalReport report)
{
 final String messageKey = report.getLabelKey();
 final Type type = getType();
 final String link =
   report.constructLink(type.getPackageName(), type.getTypeName(),
     getTestMethod());
 if (link != null)
 {
  sink.link(link);
  final String label = messages.getLabel(messageKey);
  sink.text(label);
  sink.link_();
 }
}
origin: de.smartics.testdoc/testdoc-maven-report-plugin

void renderTestMethodLink(final ExternalReport report)
{
 final String messageKey = report.getLabelKey();
 final Type type = getType();
 final String link =
   report.constructLink(type.getPackageName(), type.getTypeName(),
     getTestMethod());
 if (link != null)
 {
  sink.link(link);
  final String label = messages.getLabel(messageKey);
  sink.text(label);
  sink.link_();
 }
}
de.smartics.maven.util.report.linkExternalReport

Javadoc

Helper to construct links from a given report instance to other Maven reports.

Most used methods

  • constructLink
    Constructs a link to the given Java element.
  • getLabelKey
    Returns the key to the label to use as a label for the rendered link.
  • <init>
    Default constructor.
  • checkArguments

Popular in Java

  • Reactive rest calls using spring rest template
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • getResourceAsStream (ClassLoader)
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • TimeUnit (java.util.concurrent)
    A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • CodeWhisperer alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now