public class DefaultConversionContext extends java.lang.Object implements ConversionContext
ConversionContext passed to conversion providers.| Constructor and Description |
|---|
DefaultConversionContext(TypeFactory typeFactory,
Type targetType,
java.lang.String format) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDateFormat()
Returns the date format if this conversion or built-in method is from String to a date type (e.g.
|
Type |
getTargetType()
Returns the target type of this conversion.
|
TypeFactory |
getTypeFactory() |
public DefaultConversionContext(TypeFactory typeFactory, Type targetType, java.lang.String format)
public Type getTargetType()
ConversionContextgetTargetType in interface ConversionContextpublic java.lang.String getDateFormat()
ConversionContextDate)
or vice versa.getDateFormat in interface ConversionContextnull is
returned for other types or if not given.public TypeFactory getTypeFactory()
getTypeFactory in interface ConversionContextCopyright © 2012-2014. All Rights Reserved.