Class DesignEngineImpl
java.lang.Object
org.eclipse.birt.report.model.api.impl.DesignEngineImpl
- All Implemented Interfaces:
IDesignEngine
Implementation of DesignEngine.
-
Constructor Summary
ConstructorsConstructorDescriptionDesignEngineImpl(DesignConfig config) Constructs a DesignEngine with the given platform config. -
Method Summary
Modifier and TypeMethodDescriptionGets the meta-data of the design engine.newSessionHandle(com.ibm.icu.util.ULocale locale) Creates a new design session handle.openDesign(String fileName, InputStream ins, IModuleOption options) Opens the report design.voidregisterMetaLogger(IMetaLogger newLogger) Registers aIMetaLoggerto record initialization errors.booleanremoveMetaLogger(IMetaLogger logger) Removes aIMetaLogger.
-
Constructor Details
-
DesignEngineImpl
Constructs a DesignEngine with the given platform config.- Parameters:
config- the platform config.
-
-
Method Details
-
newSessionHandle
Creates a new design session handle. The application uses the handle to open, create and manage designs. The session also represents the user and maintains the user's locale information.- Specified by:
newSessionHandlein interfaceIDesignEngine- Parameters:
locale- the user's locale. Ifnull, uses the system locale.- Returns:
- the design session handle
- See Also:
-
getMetaData
Gets the meta-data of the design engine.- Specified by:
getMetaDatain interfaceIDesignEngine- Returns:
- the meta-data of the design engine.
-
registerMetaLogger
Registers aIMetaLoggerto record initialization errors. The logger will be notified of the errors during meta-data initialization. The meta-data system will be initialized once (and only once). Loggers should be registered before the first time a session is created so that it can be notified of the logging actions.- Specified by:
registerMetaLoggerin interfaceIDesignEngine- Parameters:
newLogger- theMetaLoggerto be registered.- See Also:
-
removeMetaLogger
Removes aIMetaLogger. This method will remove the logger from the list and close the logger if it has already been registered. The logger will no longer be notified of the errors during metadata initialization. Returnstrueif this logger manager contained the specified logger.- Specified by:
removeMetaLoggerin interfaceIDesignEngine- Parameters:
logger- theMetaLoggerto be removed.- Returns:
trueif this logger manager contained the specified logger.- See Also:
-
openDesign
public IReportDesign openDesign(String fileName, InputStream ins, IModuleOption options) throws DesignFileException Opens the report design.- Specified by:
openDesignin interfaceIDesignEngine- Parameters:
fileName- the report file nameins- the input stream. Can benull.options- options to control the way to open the design- Returns:
- the report design instance
- Throws:
DesignFileException- if the report file cannot be found or the file is invalid.
-