Class DocumentUtil
java.lang.Object
org.eclipse.birt.report.engine.api.DocumentUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidcopy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable) static voidcopy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable, Map<String, String> transformations) static Collection<IBookmarkInfo>getBookmarks(IReportDocument document, Locale locale) static booleanisCube(IReportDocument document, InstanceID instanceId) Judge whether it's a cube based on instance id
-
Constructor Details
-
DocumentUtil
public DocumentUtil()
-
-
Method Details
-
copy
public static void copy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable) throws EngineException - Throws:
EngineException
-
copy
public static void copy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable, Map<String, String> transformations) throws EngineException- Parameters:
source- The source archive file to copytarget- The destination archive file to copy torunnable-transformations- Optional transformations to apply when copying archive streams from source to destination archive- Throws:
EngineException
-
getBookmarks
public static Collection<IBookmarkInfo> getBookmarks(IReportDocument document, Locale locale) throws EngineException - Returns:
- a collection of all bookmark info; null is returned if no bookmark info.
- Throws:
EngineException
-
isCube
Judge whether it's a cube based on instance id- Parameters:
document- a report documentinstanceId- an instance id- Returns:
-