Class StringUtils
java.lang.Object
net.ssehub.easy.dslCore.translation.StringUtils
Some string utility functions.
- Author:
- Holger Eichelberger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconvertString(String string) Convert a string by removing trailing and leading string terminal signs.static StringconvertToString(String string) Converts a string value into a printable string.
-
Constructor Details
-
StringUtils
public StringUtils()
-
-
Method Details
-
convertString
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
Converts a string value into a printable string.- Parameters:
string- the string value- Returns:
- the printable string (null if
stringis null)
-