public class DefaultConversionContext extends Object implements ConversionContext
ConversionContext passed to conversion providers.| Constructor and Description |
|---|
DefaultConversionContext(TypeFactory typeFactory,
FormattingMessager messager,
Type sourceType,
Type targetType,
String dateFormat) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDateFormat()
Returns the date format if this conversion or built-in method is from String to a date type (e.g.
|
protected FormattingMessager |
getMessager() |
Type |
getTargetType()
Returns the target type of this conversion.
|
TypeFactory |
getTypeFactory() |
public DefaultConversionContext(TypeFactory typeFactory, FormattingMessager messager, Type sourceType, Type targetType, String dateFormat)
public Type getTargetType()
ConversionContextgetTargetType in interface ConversionContextpublic 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 ConversionContextprotected FormattingMessager getMessager()
Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.