Uses of Class
freemarker.core.TemplateValueFormatException
Packages that use TemplateValueFormatException
Package
Description
The seldom used or advanced parts of the fundamental FreeMarker API, compared to
freemarker.template.-
Uses of TemplateValueFormatException in freemarker.core
Subclasses of TemplateValueFormatException in freemarker.coreModifier and TypeClassDescriptionfinal classUsed when creatingTemplateDateFormat-s andTemplateNumberFormat-s to indicate that the parameters part of the format string (like some kind of pattern) is malformed.classUsed when creatingTemplateDateFormat-s andTemplateNumberFormat-s to indicate that the format string (like the value of thedateFormatsetting) is malformed.classThrown when theTemplateValueFormatdoesn't support parsing, and parsing was invoked.classclassThrown when aTemplateModelcan't be formatted because of the value/properties of it are outside of that theTemplateValueFormatsupports.final classThrown when aTemplateDateModelcan't be formatted because its type isTemplateDateModel.UNKNOWN.final classThrown when a string can't be parsed toTemplateDateModel, because the provided target type isTemplateDateModel.UNKNOWN.classThrown when the content of the string that should be parsed by theTemplateValueFormatdoesn't match what the format expects.Methods in freemarker.core that throw TemplateValueFormatExceptionModifier and TypeMethodDescriptionTemplateDateFormat.format(TemplateDateModel dateModel) Formats the model to markup instead of to plain text if the result markup will be more than just plain text escaped, otherwise falls back to formatting to plain text.TemplateNumberFormat.format(TemplateNumberModel numberModel) Formats the model to markup instead of to plain text if the result markup will be more than just plain text escaped, otherwise falls back to formatting to plain text.abstract StringTemplateDateFormat.formatToPlainText(TemplateDateModel dateModel) abstract StringTemplateNumberFormat.formatToPlainText(TemplateNumberModel numberModel) AliasTemplateDateFormatFactory.get(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env) AliasTemplateNumberFormatFactory.get(String params, Locale locale, Environment env) abstract TemplateDateFormatTemplateDateFormatFactory.get(String params, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput, Environment env) Returns a formatter for the given parameters.abstract TemplateNumberFormatTemplateNumberFormatFactory.get(String params, Locale locale, Environment env) Returns a formatter for the given parameters.Environment.getTemplateDateFormat(int dateType, Class<? extends Date> dateClass) Gets aTemplateDateFormatusing the date/time/datetime format settings and the current locale and time zone.Environment.getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass) Gets aTemplateDateFormatfor the specified format string and the current locale and time zone.Environment.getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale) LikeEnvironment.getTemplateDateFormat(String, int, Class), but allows you to use a different locale than the current one.Environment.getTemplateDateFormat(String formatString, int dateType, Class<? extends Date> dateClass, Locale locale, TimeZone timeZone, TimeZone sqlDateAndTimeTimeZone) LikeEnvironment.getTemplateDateFormat(String, int, Class), but allows you to use a different locale and time zone than the current one.Environment.getTemplateDateFormat(String formatString, int dateType, Locale locale, TimeZone timeZone, boolean zonelessInput) Gets aTemplateDateFormatfor the specified parameters.Environment.getTemplateNumberFormat()Returns the current number format (Configurable.getNumberFormat()) asTemplateNumberFormat.Environment.getTemplateNumberFormat(String formatString) Returns the number format asTemplateNumberFormatfor the given format string and the current locale.Environment.getTemplateNumberFormat(String formatString, Locale locale) Returns the number format asTemplateNumberFormat, for the given format string and locale.abstract ObjectParsers a string to date/time/datetime, according to this format.final ObjectThis method is reserved for future purposes; currently it always throwsParsingNotSupportedException.