org.jcoderz.phoenix.report
Class CpdReportReader

java.lang.Object
  extended by org.jcoderz.phoenix.report.AbstractReportReader
      extended by org.jcoderz.phoenix.report.CpdReportReader
All Implemented Interfaces:
ValidationEventHandler, ReportReader

public final class CpdReportReader
extends AbstractReportReader

CPD Report Reader.

Author:
Michael Griffel

Field Summary
static String CPD_JAXB_CONTEXT_PATH
          JAXB context path.
 
Constructor Summary
CpdReportReader()
           
 
Method Summary
protected  Map getItems()
          Returns the items of the input report as a Map of filename string and of the type Item (org.jcoderz.phoenix.report.jaxb.Item).
 void parse(File f)
          Parses the report file/directory.
 
Methods inherited from class org.jcoderz.phoenix.report.AbstractReportReader
getMarshaller, getUnmarshaller, handleEvent, merge, normalizeFileName, unmarshall
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CPD_JAXB_CONTEXT_PATH

public static final String CPD_JAXB_CONTEXT_PATH
JAXB context path.

See Also:
Constant Field Values
Constructor Detail

CpdReportReader

public CpdReportReader()
                throws JAXBException
Throws:
JAXBException
Method Detail

parse

public void parse(File f)
           throws JAXBException,
                  FileNotFoundException
Parses the report file/directory.

Parameters:
f - input XML report or directory.
Throws:
JAXBException - if an JAXB exception occures.
FileNotFoundException - if the given file does not exists.

getItems

protected Map getItems()
                throws JAXBException
Returns the items of the input report as a Map of filename string and of the type Item (org.jcoderz.phoenix.report.jaxb.Item).

Specified by:
getItems in class AbstractReportReader
Returns:
the items of the input report as a List of the type Item.
Throws:
JAXBException - if an JAXB exception occures.


Copyright 2007 The jCoderZ Project.