public class KonaKartUtils extends CommonUtils
ID_SEPARATOR, LOCALE_DE_CH, PATTERN_DATE_DATE, PATTERN_DATE_DATE_WITHOUT_YEAR, PATTERN_DATE_ENGLISH, PATTERN_DATE_FULL, PATTERN_DATE_GERMAN, PATTERN_DATE_GERMAN_FIGURES, PATTERN_DATE_GERMAN_FOR_TEXT, PATTERN_DATE_GERMAN_LONG, PATTERN_DATE_GERMAN_LONG_NICE, PATTERN_DATE_GERMAN_SHORT_YEAR, PATTERN_DATE_LONG, PATTERN_DATE_MONTH_YEAR, PATTERN_DATE_MONTH_YEAR_DB, PATTERN_DATE_MONTH_YEAR_LONG, PATTERN_DATE_MONTH_YEAR_SHORT, PATTERN_DATE_SHORTTIME_GERMAN, PATTERN_DATE_TIME_ENGLISH, PATTERN_DATE_TIME_GERMAN, PATTERN_DATE_TIME_WITH_MILLIS_GERMAN, PATTERN_DATE_YEAR, PATTERN_TIME_HHMM, PATTERN_TIME_HHMMSS, UNDEF_VALUE_TEXT
Constructor and Description |
---|
KonaKartUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
deserializeJsonToString(java.lang.String json,
java.lang.Class<?> classObject)
Deserialize Json String to Object
|
static java.awt.Image |
getBarcode(java.lang.String barcodeType,
java.lang.String content)
Generate barcode by barcode type and content
|
static java.lang.Object |
getTagValue(java.lang.String xml,
java.lang.String tagName)
Get xml tag value from string
|
static boolean |
isCollectionEmpty(java.util.Collection<?> collection)
Is the input collection null or empty?
|
static boolean |
isMapEmpty(java.util.Map<?,?> map)
Is the input map null or empty?
|
static boolean |
isObjectArrayEmpty(java.lang.Object[] objectArray)
Is the input array null or empty?
|
static java.lang.String |
removeCData(java.lang.String inString)
Returns the string passed in as inString without the CData information.
|
static java.lang.String |
serializeObjectToJsonString(java.lang.Object object)
Serialize Object to Json String
|
addBDToTotal, addDate, addDoubleToTotal, addIntegerToTotal, addRoundedDoubleToTotal, addSeconds, areDatesOverlapping, compareDateAndTimes, compareDates, compareMinutes, compareTimes, compareYearAndMonth, convertDoubleToBigDecimal, convertHoursToMinutes, convertHoursToSecondes, convertIds, convertMinutesToHours, convertToList, convertXMLGregorianCalendar, convertXMLGregorianCalendarForFromDate, convertXMLGregorianCalendarForToDate, copyTimeToDate, divideAndFormatBD, divideAndFormatBDToPercent, divideAndFormatDouble, divideAndFormatDoubleToPercent, divideBD, divideBDToPercent, divideDouble, divideInteger, formatBigDecimal, formatBigDecimal, formatDouble, formatDouble, formatDoubleToCurrency, formatDoubleToKm, formatLong, formatWeekYear, get18Birthday, getActualApplDateWithFallback, getActualSystemTime, getActualWeek, getApplInfiniteDate, getApplMaxDate, getApplMinDate, getBirthday, getBooleanFromInt, getBooleanFromInteger, getBooleanFromText, getCalendar, getCalendar, getCalendar, getCurrentBirthday, getDate, getDate, getDate, getDateFieldValue, getDateFormatted, getDateFormattedDateTimeEnglish, getDateFormattedDD_MMMM_YYYY, getDateFormattedLong, getDateFormattedLongNice, getDateFormattedMMMM_YYYY, getDateRoundXMinutes, getDatesFormatted, getDateSum, getDateSumCheckMidnight, getDateSumCheckMidnightView, getDateWithMinutesOffset, getDateWithOffset, getDateWithOffset, getDateWithOffset, getDateWithoutSeconds, getDateWithoutTime, getDay, getDayOfWeek, getDaysInPeriod, getDouble, getDoubleOrZero, getEndOfDay, getEndOfDay, getEndOfHour, getEndOfMonth, getEndOfMonth, getEndOfMonth, getEndOfMonth, getEndOfNextMonth, getEndOfNextYear, getEndOfNextYear, getEndOfPreviousMonth, getEndOfPreviousMonth, getEndOfPreviousYear, getEndOfPreviousYear, getEndOfWeek, getEndOfWeek, getEndOfYear, getEndOfYear, getEndOfYear, getFormattedDurationOfMs, getFormattedHHMMOfMinutes, getFormattedHHOfMinutes, getHours, getInteger, getIntegerWithFallback, getIntFromBoolean, getIntOrZero, getLastWeekInMonth, getLastWeekInMonth, getLongWithFallback, getMD5, getMinutes, getMinutesFormattedFromTime, getMonth, getNestedValue, getNextBirthday, getNextDay, getNextMonday, getNextWorkingDate, getNumberOfDaysBetweenDates, getPreviousDay, getPreviousDay, getPreviousWorkingDate, getPropertyWithFallback, getSameWeekDayLastYear, getStackTrace, getStartOfAfternoon, getStartOfAfternoon, getStartOfDay, getStartOfDay, getStartOfHour, getStartOfMonth, getStartOfMonth, getStartOfMonth, getStartOfMonth, getStartOfNextMonth, getStartOfNextMonth, getStartOfNextYear, getStartOfNextYear, getStartOfPreviousMonth, getStartOfPreviousMonth, getStartOfPreviousYear, getStartOfWeek, getStartOfWeek, getStartOfYear, getStartOfYear, getStartOfYear, getStartOfYearYYYY, getTextFromBoolean, getTime, getTime, getTime, getTimeDiffInMinutes, getTimeFormatted, getTimeFormatted, getTimeFormattedFromMinutes, getTimeMidnightView, getWeek, getYear, getYear, isAfterOfEquals, isBeforeOrEquals, isDateInPeriod, isFriday, isFriday, isGivenDayOfWeek, isInGivenDates, isMonday, isMonday, isSameDay, isSameDay, isSameMonth, isSameYear, isSaturday, isSaturday, isSunday, isSunday, isThursday, isThursday, isWeekendDay, lpad, parseDate, parseDate, parseDateDateTimeEnglish, parseTimeHHMM, parseTimeHHMMSS, parseWeekYear, reverse, roundAmount, roundAndFormatDouble, roundAndFormatDouble, roundDouble, rpad, substring, trimString, truncateString
public static java.lang.String removeCData(java.lang.String inString)
inString
- the inStringpublic static boolean isCollectionEmpty(java.util.Collection<?> collection)
collection
- the collection to checkpublic static boolean isMapEmpty(java.util.Map<?,?> map)
map
- the map to checkpublic static boolean isObjectArrayEmpty(java.lang.Object[] objectArray)
objectArray
- the objectArray to checkpublic static java.lang.Object getTagValue(java.lang.String xml, java.lang.String tagName)
xml
- as StringtagName
- as Stringpublic static java.awt.Image getBarcode(java.lang.String barcodeType, java.lang.String content) throws com.konakart.app.KKException
barcodeType
- as Stringcontent
- as Stringcom.konakart.app.KKException
- if exception occurespublic static java.lang.Object deserializeJsonToString(java.lang.String json, java.lang.Class<?> classObject)
json
- as StringclassObject
- as Classpublic static java.lang.String serializeObjectToJsonString(java.lang.Object object)
object
- as ObjectCopyright © 2018 DS Data Systems UK Ltd.