F - The formattable object typeS - The style typepublic abstract class AbstractTimeFormatHelper<F,S> extends LocaleAwareValueHelper
VALUE_TAG_TYPESHELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
AbstractTimeFormatHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.lang.String |
defaultFormat(F value,
java.util.Locale locale,
java.util.TimeZone timeZone) |
void |
execute(Options options)
Execute the helper.
|
protected abstract java.lang.String |
format(F value,
S style,
java.util.Locale locale,
java.util.TimeZone timeZone) |
protected abstract java.lang.String |
format(F value,
java.lang.String pattern,
java.util.Locale locale,
java.util.TimeZone timeZone) |
protected abstract F |
getFormattableObject(java.lang.Object value,
java.util.Locale locale,
java.util.TimeZone timeZone,
MustacheTagInfo tagInfo) |
protected java.util.TimeZone |
getTimeZone(Options options) |
protected abstract S |
parseStyle(java.lang.String style,
MustacheTagInfo tagInfo) |
protected MustacheException |
unknownStyle(java.lang.String style,
MustacheTagInfo tagInfo) |
protected MustacheException |
valueNotAFormattableObject(java.lang.Object value,
MustacheTagInfo tagInfo) |
getCurrentLocale, getLocale, initallowedTagTypesnumberOfRequiredHashEntries, numberOfRequiredParameters, validateappend, getHashValue, isSection, isUnescapeVariable, isVariablegetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initpublic void execute(Options options)
Helperprotected abstract java.lang.String defaultFormat(F value, java.util.Locale locale, java.util.TimeZone timeZone)
value - protected abstract java.lang.String format(F value, S style, java.util.Locale locale, java.util.TimeZone timeZone)
value - style - protected abstract java.lang.String format(F value, java.lang.String pattern, java.util.Locale locale, java.util.TimeZone timeZone)
value - pattern - protected abstract S parseStyle(java.lang.String style, MustacheTagInfo tagInfo)
style - tagInfo - protected abstract F getFormattableObject(java.lang.Object value, java.util.Locale locale, java.util.TimeZone timeZone, MustacheTagInfo tagInfo)
value - tagInfo - MustacheException - If the given value does not represent a formattable objectprotected java.util.TimeZone getTimeZone(Options options)
options - protected MustacheException valueNotAFormattableObject(java.lang.Object value, MustacheTagInfo tagInfo)
protected MustacheException unknownStyle(java.lang.String style, MustacheTagInfo tagInfo)
Copyright © 2014. All Rights Reserved.