java.lang.Object
de.monticore.generating.templateengine.reporting.commons.ReportingHelper

public class ReportingHelper extends Object
Helper to write files
  • Constructor Details

    • ReportingHelper

      public ReportingHelper()
  • Method Details

    • formatStringToReportingString

      public static String formatStringToReportingString(String toBeFormatted, int length)
      Removes all tabs and whitespaces. Transforms the string into a StringValue, beginning and ending with quotes. If the length is lower than 7 and the formatted string does not fit in, the output is "[...]".
      Parameters:
      toBeFormatted -
      length -
      Returns:
    • formatLineToReportingLine

      public static String formatLineToReportingLine(String toBeFormatted, int length)
      Removes all line breaks. Returns [...] if formatted string is longer than the parameter length.
      Parameters:
      toBeFormatted -
      length -
      Returns:
    • getHookPointName

      public static String getHookPointName(String hookName)
    • getTemplateName

      public static String getTemplateName(String hookName)
    • getChecksum

      public static String getChecksum(String file)
      Calculate the MD5 checksum for the given file.
      Parameters:
      file -
      Returns: