de.smartics.exceptions.report.data
Class AbstractExceptionCodesReport

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

@NotThreadSafe
public abstract class AbstractExceptionCodesReport
     
     
extends Object
implements ExceptionCodesReport

Base implementation of an exception codes report that stores all items and reported problems in-memory.


Constructor Summary
protected AbstractExceptionCodesReport()
          Default constructor.
 
Method Summary
 void add(ExceptionCodeReportItem item)
          Adds the given code information as an item to the report.
 void addProblem(ReportProblem problem)
          Reports a problem encountered while analyzing for report items.
 List<ReportProblem> getProblems()
          Returns the list of problems encountered while parsing sources and fetching report information.
 boolean hasProblems()
          Checks if there are reported problems.
protected  void register(ExceptionCodeReportItem item)
          Registers a report item to check for uniqueness constraint violations.
 
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
isEmpty
 

Constructor Detail

AbstractExceptionCodesReport

protected AbstractExceptionCodesReport()
Default constructor.

Method Detail

getProblems

public final List<ReportProblem> getProblems()
Returns the list of problems encountered while parsing sources and fetching report information.

Specified by:
getProblems in interface ExceptionCodesReport
Returns:
the list of problems encountered while parsing sources and fetching report information.
See Also:
de.smartics.properties.report.data.PropertyReport#getProblems()

addProblem

public final void addProblem(ReportProblem problem)
Description copied from interface: ExceptionCodesReport
Reports a problem encountered while analyzing for report items.

Specified by:
addProblem in interface ExceptionCodesReport
Parameters:
problem - a description to the problem encountered.

hasProblems

public final boolean hasProblems()
Checks if there are reported problems.

Specified by:
hasProblems in interface ExceptionCodesReport
Returns:
true if at least one report problem is reported, false if there are none.
See Also:
de.smartics.properties.report.data.PropertyReport#hasProblems()

add

public void add(ExceptionCodeReportItem item)
         throws ReportException
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
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)

register

protected final void register(ExceptionCodeReportItem item)
Registers a report item to check for uniqueness constraint violations.

Parameters:
item - the report item to manage.


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