de.smartics.maven.issues.util
Class ReportReferenceExtractor

Package class diagram package ReportReferenceExtractor
java.lang.Object
  extended by de.smartics.maven.issues.util.ReportReferenceExtractor

public class ReportReferenceExtractor
     
     
extends Object

Responsible to extract report reference information from the report configurations that reference previous reports.

Author:
Robert Reiner

Constructor Summary
ReportReferenceExtractor(String id, org.apache.maven.artifact.versioning.ArtifactVersion version, org.apache.maven.model.Reporting reporting)
          Default constructor.
 
Method Summary
 List<ReportReference> readReportReferences()
          Reads the relevant report references.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportReferenceExtractor

public ReportReferenceExtractor(String id,
                                org.apache.maven.artifact.versioning.ArtifactVersion version,
                                org.apache.maven.model.Reporting reporting)
Default constructor.

Parameters:
id - the identifier of the report that must match as prefix the outputName of a report configuration for that configuration to be eligable for reference.
version - the version of the current report to estimate if the referenced report is previous.
reporting - the reporting section of the POM to analyse.
Method Detail

readReportReferences

public List<ReportReference> readReportReferences()
Reads the relevant report references. The reports must match the given prefix ( id), provide a readable version range and the range must be previous to the current version.

Returns:
the references that match the criterias.


Copyright © 2008-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.