Class StringUtils


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

      Constructors 
      Constructor Description
      StringUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertString​(java.lang.String string)
      Convert a string by removing trailing and leading string terminal signs.
      static java.lang.String convertToString​(java.lang.String string)
      Converts a string value into a printable string.
      • Methods inherited from class java.lang.Object

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

      • StringUtils

        public StringUtils()
    • Method Detail

      • convertString

        public static java.lang.String convertString​(java.lang.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 java.lang.String convertToString​(java.lang.String string)
        Converts a string value into a printable string.
        Parameters:
        string - the string value
        Returns:
        the printable string (null if string is null)