| java.lang.Object org.openlaszlo.utils.LZUtils
LZUtils | public class LZUtils (Code) | | Class for miscellaneous utility functions.
|
expandProperties | public static Properties expandProperties(Properties p) throws Exception(Code) | | Expand system property values enclosed in ${}.
Parameters: p - properties object to expand property values properties object with expanded values throws: Exception - if a system property value doesn't exist or theproperty value isn't enclosed properly in ${} |
getInt | public static int getInt(Object o)(Code) | | Get int from object.
Parameters: o - number to convert. if null or non-integer, returns 0. |
getStr | public static String getStr(Object o)(Code) | | Get string from object.
Parameters: o - object to convert. if null or non-string, returns null. |
getStr | public static String getStr(Object o, boolean isNullOk)(Code) | | Get string from object.
Parameters: o - object to convert. Parameters: isNullOk - if true, return null for nulls or non-strings, elsereturn an empty string if null or non-string, returns null as long as isNullOk is true,else return empty string. |
parseInt | public static int parseInt(String s)(Code) | | Parse a string that contains a number.
number parsed from string. 0, if invalid. |
|
|