|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.birt.report.engine.api.ReportEngine
This is a wrapper class for the IReportEngine. The new user should use the IReportEngineFactory to create the IReportEngine instead of use this class directly.
org.eclipes.birt.report.engine.api.ReportRunner| Field Summary | |
protected IReportEngine |
engine
|
| Constructor Summary | |
ReportEngine(EngineConfig config)
Constructor. |
|
| Method Summary | |
void |
changeLogLevel(java.util.logging.Level newLevel)
Change the log level to newLevel |
IDataExtractionTask |
createDataExtractionTask(IReportDocument reportDocument)
creates a task that allows data extraction from a report document |
IGetParameterDefinitionTask |
createGetParameterDefinitionTask(IReportRunnable reportRunnable)
creates an engine task for obtaining report parameter definitions |
IRenderTask |
createRenderTask(IReportDocument reportDocument)
creates a task that renders the report to a specific output format. |
IRunAndRenderTask |
createRunAndRenderTask(IReportRunnable reportRunnable)
creates an engine task for running and rendering report directly to output format |
IRunTask |
createRunTask(IReportRunnable reportRunnable)
creates a task to run a report to generate a report document |
void |
destroy()
shuts down the report engine |
EngineConfig |
getConfig()
returns the engine configuration object |
java.lang.String |
getMIMEType(java.lang.String format)
the MIME type for the specific formatted supported by the extension. |
java.lang.Object |
getRootScope()
get the root scope used by the engine |
java.lang.String[] |
getSupportedFormats()
returns all supported output formats through BIRT engine emitter extensions |
IReportRunnable |
openReportDesign(java.io.InputStream designStream)
opens a report design stream and creates a report design runnable. |
IReportRunnable |
openReportDesign(org.eclipse.birt.report.model.api.ReportDesignHandle designHandle)
opens a report designHandle and creates a report design runnable. |
IReportRunnable |
openReportDesign(java.lang.String designName)
opens a report design file and creates a report design runnable. |
IReportRunnable |
openReportDesign(java.lang.String name,
java.io.InputStream designStream)
|
IReportRunnable |
openReportDesign(java.lang.String name,
java.io.InputStream designStream,
org.eclipse.birt.report.model.api.IResourceLocator locator)
|
IReportRunnable |
openReportDesign(java.lang.String name,
java.io.InputStream designStream,
java.util.Map options)
open the report design and return the runnable |
IReportRunnable |
openReportDesign(java.lang.String designName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
|
IReportDocument |
openReportDocument(java.lang.String fileName)
opens a report document and returns an IReportDocument object, from which further information can be retrieved. |
IReportDocument |
openReportDocument(java.lang.String systemId,
org.eclipse.birt.core.archive.IDocArchiveReader reader,
java.util.Map options)
|
IReportDocument |
openReportDocument(java.lang.String fileName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
|
IReportDocument |
openReportDocument(java.lang.String systemId,
java.lang.String fileName)
opens a report document and returns an IReportDocument object, from which further information can be retrieved. |
IReportDocument |
openReportDocument(java.lang.String systemId,
java.lang.String fileName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
|
IReportDocument |
openReportDocument(java.lang.String systemId,
java.lang.String fileName,
java.util.Map options)
opens a report document and returns an IReportDocument object, from which further information can be retrieved. |
void |
shutdown()
shut down the engine, release all the resources. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected IReportEngine engine
| Constructor Detail |
public ReportEngine(EngineConfig config)
config - an engine configuration object used to configure the engine| Method Detail |
public java.lang.Object getRootScope()
getRootScope in interface IReportEnginepublic void changeLogLevel(java.util.logging.Level newLevel)
changeLogLevel in interface IReportEnginenewLevel - -
new log levelpublic EngineConfig getConfig()
getConfig in interface IReportEngine
public IReportRunnable openReportDesign(java.lang.String designName)
throws EngineException
openReportDesign in interface IReportEnginedesignName - the full path of the report design file
EngineException - throwed when the input file does not exist, or the file is
invalid
public IReportRunnable openReportDesign(org.eclipse.birt.report.model.api.ReportDesignHandle designHandle)
throws EngineException
openReportDesign in interface IReportEnginedesignHandle -
EngineException
public IReportRunnable openReportDesign(java.io.InputStream designStream)
throws EngineException
openReportDesign in interface IReportEnginedesignStream - the report design input stream
EngineException - throwed when the input stream is null, or the stream does not
yield a valid report design
public IReportRunnable openReportDesign(java.lang.String name,
java.io.InputStream designStream)
throws EngineException
openReportDesign in interface IReportEngineEngineExceptionpublic IRunAndRenderTask createRunAndRenderTask(IReportRunnable reportRunnable)
createRunAndRenderTask in interface IReportEnginereportRunnable - the runnable report design object
public IGetParameterDefinitionTask createGetParameterDefinitionTask(IReportRunnable reportRunnable)
createGetParameterDefinitionTask in interface IReportEnginereportRunnable - the runnable report design object
public java.lang.String[] getSupportedFormats()
getSupportedFormats in interface IReportEnginepublic java.lang.String getMIMEType(java.lang.String format)
getMIMEType in interface IReportEngineformat - the output format
public void destroy()
destroy in interface IReportEnginepublic IRunTask createRunTask(IReportRunnable reportRunnable)
createRunTask in interface IReportEnginereportRunnable - the runnable report design object
public IRenderTask createRenderTask(IReportDocument reportDocument)
createRenderTask in interface IReportEnginereportDocument - a handle to an IReportDocument object
public IReportDocument openReportDocument(java.lang.String fileName)
throws EngineException
openReportDocument in interface IReportEnginefileName - the report document name. report document is an archive in
BIRT.
EngineException - throwed when the report document archive does not exist, or
the file is not a valud report documentpublic IDataExtractionTask createDataExtractionTask(IReportDocument reportDocument)
createDataExtractionTask in interface IReportEnginereportDocument - a handle to an IReportDocument object
public void shutdown()
shutdown in interface IReportEngine
public IReportDocument openReportDocument(java.lang.String systemId,
java.lang.String fileName)
throws EngineException
IReportEngine
openReportDocument in interface IReportEnginesystemId - the system id the opend document. It is used to access the resources with
relative path in the report document. If it is NULL, a saved one is used.fileName - the report document name. report document is an archive in
BIRT.
EngineException - throwed when the report document archive does not exist, or
the file is not a valud report document
public IReportRunnable openReportDesign(java.lang.String designName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
throws EngineException
openReportDesign in interface IReportEngineEngineException
public IReportRunnable openReportDesign(java.lang.String name,
java.io.InputStream designStream,
org.eclipse.birt.report.model.api.IResourceLocator locator)
throws EngineException
openReportDesign in interface IReportEngineEngineException
public IReportRunnable openReportDesign(java.lang.String name,
java.io.InputStream designStream,
java.util.Map options)
throws EngineException
IReportEngine
openReportDesign in interface IReportEnginename - system id of the report design.designStream - stream of the report desgin.options - options used to parse the design.
EngineExceptionModelOptions
public IReportDocument openReportDocument(java.lang.String fileName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
throws EngineException
openReportDocument in interface IReportEngineEngineException
public IReportDocument openReportDocument(java.lang.String systemId,
java.lang.String fileName,
org.eclipse.birt.report.model.api.IResourceLocator locator)
throws EngineException
openReportDocument in interface IReportEngineEngineException
public IReportDocument openReportDocument(java.lang.String systemId,
java.lang.String fileName,
java.util.Map options)
throws EngineException
IReportEngine
openReportDocument in interface IReportEnginesystemId - the system id the opend document. It is used to access the resources with
relative path in the report document. If it is NULL, a saved one is used.fileName - the report document name. report document is an archive in
BIRT.options - Map defins the options used to parse the design file.
EngineException - throwed when the report document archive does not exist, or
the file is not a valud report document
public IReportDocument openReportDocument(java.lang.String systemId,
org.eclipse.birt.core.archive.IDocArchiveReader reader,
java.util.Map options)
throws EngineException
openReportDocument in interface IReportEngineEngineException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||