Class DocumentUtil
- java.lang.Object
-
- org.eclipse.birt.report.engine.api.DocumentUtil
-
public class DocumentUtil extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description DocumentUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
copy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable)
static void
copy(org.eclipse.birt.core.archive.compound.IArchiveFile source, org.eclipse.birt.core.archive.compound.IArchiveFile target, IReportRunnable runnable, java.util.Map<java.lang.String,java.lang.String> transformations)
static java.util.Collection<IBookmarkInfo>
getBookmarks(IReportDocument document, java.util.Locale locale)
static boolean
isCube(IReportDocument document, InstanceID instanceId)
Judge whether it's a cube based on instance id
-
-
-
Method Detail
-
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, java.util.Map<java.lang.String,java.lang.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 java.util.Collection<IBookmarkInfo> getBookmarks(IReportDocument document, java.util.Locale locale) throws EngineException
- Returns:
- a collection of all bookmark info; null is returned if no bookmark info.
- Throws:
EngineException
-
isCube
public static boolean isCube(IReportDocument document, InstanceID instanceId)
Judge whether it's a cube based on instance id- Parameters:
document
- a report documentinstanceId
- an instance id- Returns:
-
-