Class StringUtils

java.lang.Object
net.ssehub.easy.dslCore.translation.StringUtils

public class StringUtils extends Object
Some string utility functions.
Author:
Holger Eichelberger
  • Constructor Details

    • StringUtils

      public StringUtils()
  • Method Details

    • convertString

      public static String convertString(String string)
      Convert a string by removing trailing and leading string terminal signs. This is required, as due to the nature of the VIL template language we will not rely on automatic conversion by xText.
      Parameters:
      string - the string to be converted (may be null)
      Returns:
      the same string but without the first and the last character (null if string is null)
    • convertToString

      public static String convertToString(String string)
      Converts a string value into a printable string.
      Parameters:
      string - the string value
      Returns:
      the printable string (null if string is null)