public class DefaultConversionContext extends Object implements ConversionProvider.Context
ConversionProvider.Context passed to conversion providers.| Constructor and Description |
|---|
DefaultConversionContext(TypeFactory typeFactory,
Type targetType,
String format) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDateFormat()
Returns the date format if this conversion is from String to
Date or vice versa. |
Type |
getTargetType()
Returns the target type of this conversion.
|
TypeFactory |
getTypeFactory() |
public DefaultConversionContext(TypeFactory typeFactory, Type targetType, String format)
public Type getTargetType()
ConversionProvider.ContextgetTargetType in interface ConversionProvider.Contextpublic String getDateFormat()
ConversionProvider.ContextDate or vice versa. Returns null for other types or
if not given.getDateFormat in interface ConversionProvider.Contextpublic TypeFactory getTypeFactory()
getTypeFactory in interface ConversionProvider.ContextCopyright © 2012-2013. All Rights Reserved.