|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jcoderz.phoenix.report.AbstractReportReader
public abstract class AbstractReportReader
Base Report Reader class. Every report reader must extend from this class.
| Method Summary | |
|---|---|
protected abstract Map<ResourceInfo,List<Item>> |
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). |
Marshaller |
getMarshaller()
Returns a Marshaller for this report reader. |
Unmarshaller |
getUnmarshaller()
Returns a Unmarshaller for this report reader. |
boolean |
handleEvent(ValidationEvent e)
|
void |
merge(Map<ResourceInfo,List<Item>> toItems)
Merges the items of the input report as a Map of filename string and of the type Item (org.jcoderz.phoenix.report.jaxb.Item) into the given item Map. |
protected String |
normalizeFileName(String filename)
Normalize the filename (platform dependend). |
Object |
unmarshall(InputStream in)
Reads the XML data from the given InputStream in and unmarshal it to the corresponding JAXB object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jcoderz.phoenix.report.ReportReader |
|---|
parse |
| Method Detail |
|---|
public final Marshaller getMarshaller()
throws JAXBException
JAXBException - if the creation of the marshaller failed.
public final Unmarshaller getUnmarshaller()
throws JAXBException
JAXBException - if the creation of the unmarshaller failed.public final Object unmarshall(InputStream in)
XMLReader to parse the XML data using
a simple EntityResolver that resolves any entity to an empty
string.
in - the input stream to read the XML data from.
public final void merge(Map<ResourceInfo,List<Item>> toItems)
throws JAXBException
merge in interface ReportReadertoItems - the items that should be merged with the report's
input items.
JAXBException - if an JAXB exception occurs.
protected abstract Map<ResourceInfo,List<Item>> getItems()
throws JAXBException
JAXBException - if an JAXB exception occures.public final boolean handleEvent(ValidationEvent e)
handleEvent in interface ValidationEventHandlerprotected final String normalizeFileName(String filename)
filename - the filename.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||