fr.opensagres.xdocreport.document.odp.discovery
Class ODPReportFactoryDiscovery

java.lang.Object
  extended by fr.opensagres.xdocreport.document.discovery.AbstractXDocReportFactoryDiscovery
      extended by fr.opensagres.xdocreport.document.odp.discovery.ODPReportFactoryDiscovery
All Implemented Interfaces:
IBaseDiscovery, IXDocReportFactoryDiscovery, ODPConstants

public class ODPReportFactoryDiscovery
extends AbstractXDocReportFactoryDiscovery
implements IXDocReportFactoryDiscovery, ODPConstants

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


Field Summary
 
Fields inherited from interface fr.opensagres.xdocreport.document.odp.ODPConstants
CONTENT_XML_ENTRY, DESCRIPTION_DISCOVERY, ID_DISCOVERY, MIME_MAPPING, MIMETYPE, ODP_EXTENSION, ODP_MIMETYPE, STYLES_XML_ENTRY
 
Constructor Summary
ODPReportFactoryDiscovery()
           
 
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

ODPReportFactoryDiscovery

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