Class 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DocumentUtil

        public DocumentUtil()
    • 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 copy
        target - The destination archive file to copy to
        runnable -
        transformations - Optional transformations to apply when copying archive streams from source to destination archive
        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 document
        instanceId - an instance id
        Returns: