fr.opensagres.xdocreport.document.odt.discovery
Class ODTReportFactoryDiscovery

java.lang.Object
  extended by fr.opensagres.xdocreport.document.discovery.AbstractXDocReportFactoryDiscovery
      extended by fr.opensagres.xdocreport.document.odt.discovery.ODTReportFactoryDiscovery
All Implemented Interfaces:
IBaseDiscovery, IXDocReportFactoryDiscovery

public class ODTReportFactoryDiscovery
extends AbstractXDocReportFactoryDiscovery
implements IXDocReportFactoryDiscovery

ODT discovery used by the XDocReportRegistry.loadReport(java.io.InputStream) to create an instance of ODTReport if input stream to load is an ODT.


Constructor Summary
ODTReportFactoryDiscovery()
           
 
Method Summary
 IXDocReport createReport()
          Create a new instance of IXDocReport.
 String getDescription()
          Returns the description of the discovery.
 String getId()
          Returns the id of the discovery.
 MimeMapping getMimeMapping()
          Returns mime mapping switch the kind of the report (odt, docx...).
 Class<?> getReportClass()
          Returns class report created with this factory.
 boolean isAdaptFor(XDocArchive archive)
          Returns true if loaded document archive support this discovery and false otherwise.
 
Methods inherited from class fr.opensagres.xdocreport.document.discovery.AbstractXDocReportFactoryDiscovery
isAdaptFor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.opensagres.xdocreport.document.discovery.IXDocReportFactoryDiscovery
isAdaptFor
 

Constructor Detail

ODTReportFactoryDiscovery

public ODTReportFactoryDiscovery()
Method Detail

isAdaptFor

public boolean isAdaptFor(XDocArchive archive)
Description copied from interface: IXDocReportFactoryDiscovery
Returns true if loaded document archive support this discovery and false otherwise.

Specified by:
isAdaptFor in interface IXDocReportFactoryDiscovery
Returns:

createReport

public IXDocReport createReport()
Description copied from interface: IXDocReportFactoryDiscovery
Create a new instance of IXDocReport.

Specified by:
createReport in interface IXDocReportFactoryDiscovery
Returns:

getMimeMapping

public MimeMapping getMimeMapping()
Description copied from interface: IXDocReportFactoryDiscovery
Returns mime mapping switch the kind of the report (odt, docx...).

Specified by:
getMimeMapping in interface IXDocReportFactoryDiscovery
Returns:

getDescription

public String getDescription()
Description copied from interface: IBaseDiscovery
Returns the description of the discovery.

Specified by:
getDescription in interface IBaseDiscovery
Returns:

getId

public String getId()
Description copied from interface: IBaseDiscovery
Returns the id of the discovery.

Specified by:
getId in interface IBaseDiscovery
Returns:

getReportClass

public Class<?> getReportClass()
Description copied from interface: IXDocReportFactoryDiscovery
Returns class report created with this factory.

Specified by:
getReportClass in interface IXDocReportFactoryDiscovery
Returns:


Copyright © 2013. All rights reserved.