|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.util.report.ExternalReportReferences
public class ExternalReportReferences
Manages report instances.
Field Summary | |
---|---|
static ExternalReportReferences |
EMPTY An empty report reference instance that prohibits adding information. |
Constructor Summary | |
---|---|
ExternalReportReferences(ExternalReportFactory factory) Default constructor. |
Method Summary | |
---|---|
void |
addReportId(ReportId reportId) Adds the report ID to the list of IDs to render report references. |
ExternalReport |
get(ReportId reportId) Returns the report with the given ID. |
List<ReportId> |
getReportIds() Returns the list of report IDs that are to referenced. |
List<ExternalReport> |
getReports() Returns the ordered list of report IDs to render. |
List<ExternalReport> |
getReports(List<ReportId> reportIds) Returns the list of reports with the given IDs. |
boolean |
registerReport(boolean create, ReportId reportId, LinkConstructorStrategy strategy) Registers a report with the given identifier and strategy with a guard. |
boolean |
registerReport(ReportId reportId, LinkConstructorStrategy strategy) Registers a report with the given identifier and strategy. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ExternalReportReferences EMPTY
Constructor Detail |
---|
public ExternalReportReferences(ExternalReportFactory factory)
Method Detail |
---|
public void addReportId(ReportId reportId) throws org.apache.commons.lang.NullArgumentException
reportId
- the report ID to add.
org.apache.commons.lang.NullArgumentException
- if
reportId
is
null
.
public List<ReportId> getReportIds()
public List<ExternalReport> getReports()
public boolean registerReport(ReportId reportId, LinkConstructorStrategy strategy)
Note that no report will be registered, if the factory of this instance is not set.
reportId
- the identifier of the report to register.
strategy
- the link constructor strategy to use.
true
if the report has been created and registered,
false
otherwise.
public boolean registerReport(boolean create, ReportId reportId, LinkConstructorStrategy strategy)
Note that no report will be registered, if the factory of this instance is not set.
create
- convenience flag to not register the instance.
reportId
- the identifier of the report to register.
strategy
- the link constructor strategy to use.
true
if the report has been created and registered,
false
otherwise.
public ExternalReport get(ReportId reportId)
reportId
- the ID of the requested report.
null
if the ID does not reference to such an instance.
public List<ExternalReport> getReports(List<ReportId> reportIds)
reportIds
- the IDs of the requested reports.
null
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |