Class StringUtils
- java.lang.Object
-
- net.ssehub.easy.dslCore.translation.StringUtils
-
public class StringUtils extends java.lang.ObjectSome 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.StringconvertString(java.lang.String string)Convert a string by removing trailing and leading string terminal signs.static java.lang.StringconvertToString(java.lang.String string)Converts a string value into a printable string.
-
-
-
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
stringis 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
stringis null)
-
-