fr.opensagres.xdocreport.document.ods.discovery
Class ODSReportFactoryDiscovery

java.lang.Object
  extended by fr.opensagres.xdocreport.document.discovery.AbstractXDocReportFactoryDiscovery
      extended by fr.opensagres.xdocreport.document.ods.discovery.ODSReportFactoryDiscovery
All Implemented Interfaces:
IBaseDiscovery, IXDocReportFactoryDiscovery, ODSConstants

public class ODSReportFactoryDiscovery
extends AbstractXDocReportFactoryDiscovery
implements IXDocReportFactoryDiscovery, ODSConstants

Open Office ODS discovery used by the XDocReportRegistry.loadReport(java.io.InputStream) to create an instance of ODSReport if input stream to load is an ODS.


Field Summary
 
Fields inherited from interface fr.opensagres.xdocreport.document.ods.ODSConstants
CONTENT_XML_ENTRY, DESCRIPTION_DISCOVERY, ID_DISCOVERY, MIME_MAPPING, MIMETYPE, ODS_EXTENSION, ODS_MIMETYPE, STYLES_XML_ENTRY
 
Constructor Summary
ODSReportFactoryDiscovery()
           
 
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

ODSReportFactoryDiscovery

public ODSReportFactoryDiscovery()
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.