Interface ConversionContext
- All Known Implementing Classes:
DefaultConversionContext
public interface ConversionContext
Context object passed to conversion providers and built-in methods.
- Author:
- Gunnar Morling
-
Method Summary
Modifier and TypeMethodDescriptionReturns the date format if this conversion or built-in method is from String to a date type (e.g.Returns the source type of this conversion.Returns the target type of this conversion.
-
Method Details
-
getTargetType
Type getTargetType()Returns the target type of this conversion.- Returns:
- The target type of this conversion.
-
getSourceType
Type getSourceType()Returns the source type of this conversion.- Returns:
- The source 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() -
getLocale
String getLocale() -
getTypeFactory
TypeFactory getTypeFactory()
-