Package ch.swisscom.mid.client.utils
Class Utils
java.lang.Object
ch.swisscom.mid.client.utils.Utils
public class Utils extends Object
-
Constructor Summary
Constructors Constructor Description Utils() -
Method Summary
Modifier and Type Method Description static voidconfigNotNull(Object target, String errorMessage)static voidconfigTrue(boolean condition, String errorMessage)static voiddataNotEmpty(String value, String errorMessage)static <T> voiddataNotEmpty(List<T> list, String errorMessage)static voiddataNotNull(Object target, String errorMessage)static voiddataTrue(boolean condition, String errorMessage)static StringgenerateInstantAsString()static XMLGregorianCalendargenerateInstantAsXmlGregorianCalendar()static StringgenerateTransId()static StringjoinListOfStrings(List<String> theList, String separator)static StringstripInnerLargeBase64Content(String source, char leftBoundChar, char rightBoundChar)
-
Constructor Details
-
Utils
public Utils()
-
-
Method Details
-
configNotNull
- Throws:
ConfigurationException
-
configTrue
public static void configTrue(boolean condition, String errorMessage) throws ConfigurationException- Throws:
ConfigurationException
-
dataNotNull
- Throws:
DataAssemblyException
-
dataNotEmpty
public static <T> void dataNotEmpty(List<T> list, String errorMessage) throws DataAssemblyException- Throws:
DataAssemblyException
-
dataNotEmpty
- Throws:
DataAssemblyException
-
dataTrue
- Throws:
DataAssemblyException
-
generateTransId
-
generateInstantAsXmlGregorianCalendar
-
generateInstantAsString
-
stripInnerLargeBase64Content
-
joinListOfStrings
-