Class ConversionUtils
java.lang.Object
org.mapstruct.ap.internal.conversion.ConversionUtils
Methods mainly used in
SimpleConversion classes, e. g.
to get the correct String representation of various types that could be used in generated sources.- Author:
- Christian Bandowski
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringbigDecimal(ConversionContext conversionContext) Name forBigDecimal.static StringbigInteger(ConversionContext conversionContext) Name forBigInteger.static Stringcurrency(ConversionContext conversionContext) Name forCurrency.static Stringdate(ConversionContext conversionContext) Name forDate.static StringdateTimeFormat(ConversionContext conversionContext) Name fororg.joda.time.format.DateTimeFormat.static StringdateTimeFormatter(ConversionContext conversionContext) Name forDateTimeFormatter.static StringdecimalFormat(ConversionContext conversionContext) Name forDecimalFormat.static StringdecimalFormatSymbols(ConversionContext conversionContext) Name forDecimalFormatSymbols.static StringlocalDate(ConversionContext conversionContext) Name forLocalDate.static StringlocalDateTime(ConversionContext conversionContext) Name forLocalDateTime.static Stringlocale(ConversionContext conversionContext) Name forLocale.static StringsimpleDateFormat(ConversionContext conversionContext) Name forSimpleDateFormat.static StringsqlDate(ConversionContext conversionContext) Name forDate.static StringstringBuilder(ConversionContext conversionContext) Name forStringBuilder.static Stringtime(ConversionContext conversionContext) Name forTime.static Stringtimestamp(ConversionContext conversionContext) Name forTimestamp.static Stringurl(ConversionContext conversionContext) Name forURL.static Stringuuid(ConversionContext conversionContext) Name forUUID.static StringzonedDateTime(ConversionContext conversionContext) Name forZonedDateTime.static StringzoneId(ConversionContext conversionContext) Name forZoneId.static StringzoneOffset(ConversionContext conversionContext) Name forZoneOffset.
-
Method Details
-
bigDecimal
Name forBigDecimal.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
bigInteger
Name forBigInteger.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
locale
Name forLocale.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
currency
Name forCurrency.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
sqlDate
Name forDate.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
time
Name forTime.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
timestamp
Name forTimestamp.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
decimalFormat
Name forDecimalFormat.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
simpleDateFormat
Name forSimpleDateFormat.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
date
Name forDate.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
zoneOffset
Name forZoneOffset.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
zoneId
Name forZoneId.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
localDate
Name forLocalDate.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
localDateTime
Name forLocalDateTime.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
zonedDateTime
Name forZonedDateTime.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
dateTimeFormatter
Name forDateTimeFormatter.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
dateTimeFormat
Name fororg.joda.time.format.DateTimeFormat.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
stringBuilder
Name forStringBuilder.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
uuid
Name forUUID.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
url
Name forURL.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-
decimalFormatSymbols
Name forDecimalFormatSymbols.- Parameters:
conversionContext- Conversion context- Returns:
- Name or fully-qualified name.
-