fr.opensagres.xdocreport.document.docx.discovery
Class DocxReportFactoryDiscovery

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

public class DocxReportFactoryDiscovery
extends AbstractXDocReportFactoryDiscovery

MS Word DOCX discovery used by the XDocReportRegistry.loadReport(java.io.InputStream) to create an instance of DocxReport if input stream to load is an ODS.


Constructor Summary
DocxReportFactoryDiscovery()
           
 
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 documentArchive)
          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
 

Constructor Detail

DocxReportFactoryDiscovery

public DocxReportFactoryDiscovery()
Method Detail

isAdaptFor

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

Returns:

createReport

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

Returns:

getMimeMapping

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

Returns:

getDescription

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

Returns:

getId

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

Returns:

getReportClass

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

Returns:


Copyright © 2013. All rights reserved.