public class BigDecimalToStringConversion extends AbstractNumberToStringConversion
BigDecimal
and String
.Constructor and Description |
---|
BigDecimalToStringConversion() |
Modifier and Type | Method and Description |
---|---|
protected Set<Type> |
getFromConversionImportTypes(ConversionContext conversionContext)
Returns a set with imported types of the "from" conversion.
|
String |
getFromExpression(ConversionContext conversionContext)
Returns the conversion string from target to source.
|
List<HelperMethod> |
getRequiredHelperMethods(ConversionContext conversionContext) |
String |
getToExpression(ConversionContext conversionContext)
Returns the conversion string from source to target.
|
getFromConversionExceptionTypes, getToConversionImportTypes, requiresDecimalFormat
from, getToConversionExceptionTypes, to
public String getToExpression(ConversionContext conversionContext)
SimpleConversion
<SOURCE>
can be used to represent a
reference to the source value.getToExpression
in class SimpleConversion
conversionContext
- A context providing optional information required for creating the conversion.public String getFromExpression(ConversionContext conversionContext)
SimpleConversion
<SOURCE>
can be used to represent a
reference to the target value.getFromExpression
in class SimpleConversion
conversionContext
- ConversionContext providing optional information required for creating the conversion.protected Set<Type> getFromConversionImportTypes(ConversionContext conversionContext)
SimpleConversion
getFromConversionImportTypes
in class AbstractNumberToStringConversion
conversionContext
- the conversion contextpublic List<HelperMethod> getRequiredHelperMethods(ConversionContext conversionContext)
getRequiredHelperMethods
in interface ConversionProvider
getRequiredHelperMethods
in class SimpleConversion
conversionContext
- ConversionContext providing optional information required for creating the conversion.Copyright © 2012-2021 MapStruct Authors; All rights reserved. Released under the Apache Software License 2.0.