de.smartics.properties.reports
Class InMemoryPropertyReport

Package class diagram package InMemoryPropertyReport
java.lang.Object
  extended by de.smartics.properties.reports.AbstractPropertyReport
      extended by de.smartics.properties.reports.InMemoryPropertyReport
All Implemented Interfaces:
PropertyReport

public final class InMemoryPropertyReport
     
     
extends AbstractPropertyReport

Stores every report item in memory.


Constructor Summary
InMemoryPropertyReport()
          Default constructor.
 
Method Summary
 List<PropertyReportItem> getItems()
          Returns the list of report items.
 List<PropertyReportSet> getSets()
          Returns the list of report sets.
 void handle(PropertyReportItem item)
          Passes a report item to the report.
 void handle(PropertyReportSet reportSet)
          Passes a report set document information to the report.
 
Methods inherited from class de.smartics.properties.reports.AbstractPropertyReport
addProblem, getProblems, hasProblems, register, traverseAliases
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemoryPropertyReport

public InMemoryPropertyReport()
Default constructor.

Method Detail

getSets

public List<PropertyReportSet> getSets()
Returns the list of report sets.

Returns:
the list of report sets.

getItems

public List<PropertyReportItem> getItems()
Returns the list of report items.

Returns:
the list of report items.

handle

public void handle(PropertyReportSet reportSet)
            throws ReportException
Passes a report set document information to the report.

Parameters:
reportSet - the report set to handle.
Throws:
ReportException - on any problem that prevents the report to digest the given set.
See Also:
PropertyReport.handle(de.smartics.properties.report.data.PropertyReportSet)

handle

public void handle(PropertyReportItem item)
            throws ReportException
Passes a report item to the report.

Registers a report item to manage the alias mapping and check for uniqueness constraint violations.

Specified by:
handle in interface PropertyReport
Overrides:
handle in class AbstractPropertyReport
Parameters:
item - the report item to handle.
Throws:
ReportException - on any problem that prevents the report to digest the given item.
See Also:
PropertyReport.handle(de.smartics.properties.report.data.PropertyReportItem)


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