public final class ConversionUtils extends Object
SimpleConversion
classes, e. g.
to get the correct String representation of various types that could be used in generated sources.Modifier and Type | Method and Description |
---|---|
static String |
bigDecimal(ConversionContext conversionContext)
Name for
BigDecimal . |
static String |
bigInteger(ConversionContext conversionContext)
Name for
BigInteger . |
static String |
currency(ConversionContext conversionContext)
Name for
Currency . |
static String |
date(ConversionContext conversionContext)
Name for
Date . |
static String |
dateTimeFormat(ConversionContext conversionContext)
Name for
org.joda.time.format.DateTimeFormat . |
static String |
dateTimeFormatter(ConversionContext conversionContext)
Name for
DateTimeFormatter . |
static String |
decimalFormat(ConversionContext conversionContext)
Name for
DecimalFormat . |
static String |
localDateTime(ConversionContext conversionContext)
Name for
LocalDateTime . |
static String |
locale(ConversionContext conversionContext)
Name for
Locale . |
static String |
simpleDateFormat(ConversionContext conversionContext)
Name for
SimpleDateFormat . |
static String |
sqlDate(ConversionContext conversionContext)
Name for
Date . |
static String |
time(ConversionContext conversionContext)
Name for
Time . |
static String |
timestamp(ConversionContext conversionContext)
Name for
Timestamp . |
static String |
zonedDateTime(ConversionContext conversionContext)
Name for
ZonedDateTime . |
static String |
zoneId(ConversionContext conversionContext)
Name for
ZoneId . |
static String |
zoneOffset(ConversionContext conversionContext)
Name for
ZoneOffset . |
public static String bigDecimal(ConversionContext conversionContext)
BigDecimal
.conversionContext
- Conversion contextpublic static String bigInteger(ConversionContext conversionContext)
BigInteger
.conversionContext
- Conversion contextpublic static String locale(ConversionContext conversionContext)
Locale
.conversionContext
- Conversion contextpublic static String currency(ConversionContext conversionContext)
Currency
.conversionContext
- Conversion contextpublic static String sqlDate(ConversionContext conversionContext)
Date
.conversionContext
- Conversion contextpublic static String time(ConversionContext conversionContext)
Time
.conversionContext
- Conversion contextpublic static String timestamp(ConversionContext conversionContext)
Timestamp
.conversionContext
- Conversion contextpublic static String decimalFormat(ConversionContext conversionContext)
DecimalFormat
.conversionContext
- Conversion contextpublic static String simpleDateFormat(ConversionContext conversionContext)
SimpleDateFormat
.conversionContext
- Conversion contextpublic static String date(ConversionContext conversionContext)
Date
.conversionContext
- Conversion contextpublic static String zoneOffset(ConversionContext conversionContext)
ZoneOffset
.conversionContext
- Conversion contextpublic static String zoneId(ConversionContext conversionContext)
ZoneId
.conversionContext
- Conversion contextpublic static String localDateTime(ConversionContext conversionContext)
LocalDateTime
.conversionContext
- Conversion contextpublic static String zonedDateTime(ConversionContext conversionContext)
ZonedDateTime
.conversionContext
- Conversion contextpublic static String dateTimeFormatter(ConversionContext conversionContext)
DateTimeFormatter
.conversionContext
- Conversion contextpublic static String dateTimeFormat(ConversionContext conversionContext)
org.joda.time.format.DateTimeFormat
.conversionContext
- Conversion contextCopyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.