de.smartics.properties.reports
Class XmlPropertyReport

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

public final class XmlPropertyReport
     
     
extends AbstractPropertyReport

Writes each report to a file.


Constructor Summary
XmlPropertyReport(de.smartics.util.io.StreamHandler propertySetReportsRootDir, de.smartics.util.io.StreamHandler propertyReportsRootDir)
          Constructor using UTF-8 as encoding.
XmlPropertyReport(String encoding, de.smartics.util.io.StreamHandler propertySetReportsRootDir, de.smartics.util.io.StreamHandler propertyReportsRootDir)
          Default constructor.
 
Method Summary
 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

XmlPropertyReport

public XmlPropertyReport(de.smartics.util.io.StreamHandler propertySetReportsRootDir,
                         de.smartics.util.io.StreamHandler propertyReportsRootDir)
                  throws NullPointerException
Constructor using UTF-8 as encoding.

Parameters:
propertySetReportsRootDir - the location for property set reports being written to.
propertyReportsRootDir - the location for property reports being written to.
Throws:
NullPointerException - if propertySetReportsRootDir or propertyReportsRootDir is null.

XmlPropertyReport

public XmlPropertyReport(String encoding,
                         de.smartics.util.io.StreamHandler propertySetReportsRootDir,
                         de.smartics.util.io.StreamHandler propertyReportsRootDir)
                  throws NullPointerException,
                         IllegalArgumentException
Default constructor.

Parameters:
encoding - the encoding used to write to the stream.
propertySetReportsRootDir - the location for property set reports being written to.
propertyReportsRootDir - the location for property reports being written to.
Throws:
NullPointerException - if encoding, propertySetReportsRootDir or propertyReportsRootDir is null.
IllegalArgumentException - if encoding is blank.
Method Detail

handle

public void handle(PropertyReportSet reportSet)
            throws ReportException
Description copied from interface: PropertyReport
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.

handle

public void handle(PropertyReportItem item)
            throws ReportException
Description copied from class: AbstractPropertyReport
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.