Style Intelligence v12.0

inetsoft.report.io
Class MigratorUtil

java.lang.Object
  extended by inetsoft.report.io.MigratorUtil

public class MigratorUtil
extends Object

Migrator can migrate crystal report to style report.


Field Summary
static String SR_EXTENSION
           
static int TWIP
           
 
Constructor Summary
MigratorUtil()
           
 
Method Summary
static String genFormulaText(String name)
          Generate a formula text by the formula name
static String genSubFileName(String path, String subSuffix)
          Generate the subreport file name from the main report file name
static String getConditionName(String str)
          Parse the name of the condition field
static String getFileMainName(String path)
          Get the main name of the report file (without path and extension).
static String getFontName(String crFontName)
          Get the java font name from crystal report font name.
static String getFormulaName(String str)
          Parse the name of the formula object
static String getFormulaText(String text)
          Parse formula object's formula to Style Report's script.
static String getGroupName(String str)
          Parse the name of the group object
static Color getJavaColor(String colorStr)
          Get java color from windows ole color.
static String getJoinType(int crType, String currentType, String currentName)
          Get Join Type.
static int getLineStyle(int crlinestyle, String currentType, String currentName)
          Get line styles.
static int getLineStyle(int crlinestyle, String thicknessStr, String currentType, String currentName)
          Get line styles.
static int getLineStyle(String crlinestyle, String currentType, String currentName)
          Get line styles.
static int getLineStyle(String crlinestyle, String thickness, String currentType, String currentName)
          Get line styles.
static String getLinkName(String str)
          Parse the name of the link
static int getNameFieldType(String str)
          Decided the type of the field object by its name str.
static String getRunningTotalName(String str)
          Parse the name of the running total object
static int GetSortingMethod(String sort, String currentType, String currentName)
          Get sorting method.
static String getSummaryName(String str)
          Parse the name of the summary field
static int getTextAlignment(int cralign)
          Get text alignment.
static int getWarningCount()
           
static boolean hasGroupColumn(inetsoft.report.internal.binding.old.GroupAttrOld group, String col)
          Judge if the column is already used as a group column.
static void resetWarningCount()
           
static String substring(String str, String prefix, String suffix)
          substring("abcdefgh", "bc", "fg") = "de"
static void Warning(String msg)
          Write a warning note the Migrator log.
static void Warning(String msg, boolean stderr)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TWIP

public static final int TWIP
See Also:
Constant Field Values

SR_EXTENSION

public static final String SR_EXTENSION
See Also:
Constant Field Values
Constructor Detail

MigratorUtil

public MigratorUtil()
Method Detail

substring

public static String substring(String str,
                               String prefix,
                               String suffix)
substring("abcdefgh", "bc", "fg") = "de"


getRunningTotalName

public static String getRunningTotalName(String str)
Parse the name of the running total object


getLinkName

public static String getLinkName(String str)
Parse the name of the link


getGroupName

public static String getGroupName(String str)
Parse the name of the group object


getSummaryName

public static String getSummaryName(String str)
Parse the name of the summary field


getConditionName

public static String getConditionName(String str)
Parse the name of the condition field


getFormulaName

public static String getFormulaName(String str)
Parse the name of the formula object


getNameFieldType

public static int getNameFieldType(String str)
Decided the type of the field object by its name str.


getJavaColor

public static Color getJavaColor(String colorStr)
Get java color from windows ole color.


getTextAlignment

public static int getTextAlignment(int cralign)
Get text alignment.


getFontName

public static String getFontName(String crFontName)
Get the java font name from crystal report font name.


getFormulaText

public static String getFormulaText(String text)
Parse formula object's formula to Style Report's script. For now, it only comment all the formulas.


genFormulaText

public static String genFormulaText(String name)
Generate a formula text by the formula name


getFileMainName

public static String getFileMainName(String path)
Get the main name of the report file (without path and extension).


genSubFileName

public static String genSubFileName(String path,
                                    String subSuffix)
Generate the subreport file name from the main report file name


GetSortingMethod

public static int GetSortingMethod(String sort,
                                   String currentType,
                                   String currentName)
Get sorting method.


getLineStyle

public static int getLineStyle(String crlinestyle,
                               String currentType,
                               String currentName)
Get line styles.


getLineStyle

public static int getLineStyle(String crlinestyle,
                               String thickness,
                               String currentType,
                               String currentName)
Get line styles.


getLineStyle

public static int getLineStyle(int crlinestyle,
                               String currentType,
                               String currentName)
Get line styles.


getLineStyle

public static int getLineStyle(int crlinestyle,
                               String thicknessStr,
                               String currentType,
                               String currentName)
Get line styles.


getJoinType

public static String getJoinType(int crType,
                                 String currentType,
                                 String currentName)
Get Join Type.


Warning

public static void Warning(String msg)
Write a warning note the Migrator log. And count the warning number.


Warning

public static void Warning(String msg,
                           boolean stderr)

resetWarningCount

public static void resetWarningCount()

getWarningCount

public static int getWarningCount()

hasGroupColumn

public static boolean hasGroupColumn(inetsoft.report.internal.binding.old.GroupAttrOld group,
                                     String col)
Judge if the column is already used as a group column.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.