|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXDocReportFactoryDiscovery
Discovery used to register report factory in the 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 -------------
Method Summary | |
---|---|
IXDocReport |
createReport()
Create a new instance of IXDocReport . |
MimeMapping |
getMimeMapping()
Returns mime mapping switch the kind of the report (odt, docx...). |
Class<?> |
getReportClass()
Returns class report created with this factory. |
boolean |
isAdaptFor(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. |
Methods inherited from interface fr.opensagres.xdocreport.core.discovery.IBaseDiscovery |
---|
getDescription, getId |
Method Detail |
---|
boolean isAdaptFor(XDocArchive archive)
archive
-
boolean isAdaptFor(String fileExtension)
archive
-
IXDocReport createReport()
IXDocReport
.
MimeMapping getMimeMapping()
Class<?> getReportClass()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |