public interface IXDocReportFactoryDiscovery extends IBaseDiscovery
XDocReportLoader. When report is loaded with
XDocReportLoader#loadReport(java.io.InputStream) discovery is used to create the well instance report
(ODTReport, DocxReport...) switch the type of ziped XML document coming from teh stream.
An implementation report factory discovery is declared in the xdocreport-discovery.properties with 'class' property. Example for ODT report factory :
------------------------- class=fr.opensagres.xdocreport.document.odt.discovery.ODTReportFactoryDiscovery -------------
| Modifier and Type | Method and Description |
|---|---|
IXDocReport |
createReport()
Create a new instance of
IXDocReport. |
MimeMapping |
getMimeMapping()
Returns mime mapping switch the kind of the report (odt, docx...).
|
java.lang.Class<?> |
getReportClass()
Returns class report created with this factory.
|
boolean |
isAdaptFor(java.lang.String fileExtension)
Returns true if file extension support this discovery and false otherwise.
|
boolean |
isAdaptFor(XDocArchive archive)
Returns true if loaded document archive support this discovery and false otherwise.
|
getDescription, getIdboolean isAdaptFor(XDocArchive archive)
archive - boolean isAdaptFor(java.lang.String fileExtension)
archive - IXDocReport createReport()
IXDocReport.MimeMapping getMimeMapping()
java.lang.Class<?> getReportClass()
Copyright © 2024. All Rights Reserved.