de.smartics.exceptions.report.data
Class InMemoryExceptionCodesReport

Package class diagram package InMemoryExceptionCodesReport
java.lang.Object
  extended by de.smartics.exceptions.report.data.AbstractExceptionCodesReport
      extended by de.smartics.exceptions.report.data.InMemoryExceptionCodesReport
All Implemented Interfaces:
ExceptionCodesReport, StoredExceptionCodesReport

public class InMemoryExceptionCodesReport
     
     
extends AbstractExceptionCodesReport
implements StoredExceptionCodesReport

Stores all information in memory.


Constructor Summary
InMemoryExceptionCodesReport()
          Default constructor.
 
Method Summary
 void add(ExceptionCodeReportItem item)
          Adds the given code information as an item to the report.
 List<ExceptionCodeReportItem> getItems()
          Returns the list of report items.
 boolean isEmpty()
          Checks if the report contains at least one item.
 
Methods inherited from class de.smartics.exceptions.report.data.AbstractExceptionCodesReport
addProblem, getProblems, hasProblems, register
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface de.smartics.exceptions.report.data.ExceptionCodesReport
addProblem, getProblems, hasProblems
 

Constructor Detail

InMemoryExceptionCodesReport

public InMemoryExceptionCodesReport()
Default constructor.

Method Detail

getItems

public List<ExceptionCodeReportItem> getItems()
Description copied from interface: StoredExceptionCodesReport
Returns the list of report items.

Specified by:
getItems in interface StoredExceptionCodesReport
Returns:
the list of report items.

isEmpty

public boolean isEmpty()
Description copied from interface: ExceptionCodesReport
Checks if the report contains at least one item.

Specified by:
isEmpty in interface ExceptionCodesReport
Returns:
true if the report contains at least one item, false otherwise.

add

public void add(ExceptionCodeReportItem item)
         throws ReportException
Description copied from class: AbstractExceptionCodesReport
Adds the given code information as an item to the report.

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

Specified by:
add in interface ExceptionCodesReport
Overrides:
add in class AbstractExceptionCodesReport
Parameters:
item - the report item on the code to add.
Throws:
ReportException
See Also:
de.smartics.properties.report.data.PropertyReport#handle(de.smartics.properties.report.data.PropertyReportItem)


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