Interface ConversionContext
-
- All Known Implementing Classes:
DefaultConversionContext
public interface ConversionContextContext object passed to conversion providers and built-in methods.- Author:
- Gunnar Morling
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetDateFormat()Returns the date format if this conversion or built-in method is from String to a date type (e.g.StringgetNumberFormat()TypegetTargetType()Returns the target type of this conversion.TypeFactorygetTypeFactory()
-
-
-
Method Detail
-
getTargetType
Type getTargetType()
Returns the target type of this conversion.- Returns:
- The target type of this conversion.
-
getDateFormat
String getDateFormat()
Returns the date format if this conversion or built-in method is from String to a date type (e.g.Date) or vice versa.- Returns:
- The date format if this conversion or built-in method is from String to a date type.
nullis returned for other types or if not given.
-
getNumberFormat
String getNumberFormat()
-
getTypeFactory
TypeFactory getTypeFactory()
-
-