public class DateTimeFormatHelper extends AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>
DateTimeFormatResolver. The main advantage
lies in the ability to specify custom pattern per tag:
{{formatTime now pattern="DD-MM-yyyy HH:mm"}}
{{formatTime now pattern="HH:mm"}}
...
VALUE_TAG_TYPESHELPER_TAG_TYPESconfiguration| Constructor and Description |
|---|
DateTimeFormatHelper() |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
defaultFormat(java.lang.Object value,
java.util.Locale locale,
java.util.TimeZone timeZone) |
protected java.lang.String |
format(java.lang.Object value,
java.lang.Integer style,
java.util.Locale locale,
java.util.TimeZone timeZone) |
protected java.lang.String |
format(java.lang.Object value,
java.lang.String pattern,
java.util.Locale locale,
java.util.TimeZone timeZone) |
protected java.lang.Object |
getFormattableObject(java.lang.Object value,
java.util.Locale locale,
java.util.TimeZone timeZone,
MustacheTagInfo tagInfo) |
protected java.lang.Integer |
parseStyle(java.lang.String style,
MustacheTagInfo tagInfo) |
execute, getTimeZone, unknownStyle, valueNotAFormattableObjectgetCurrentLocale, getLocale, initallowedTagTypesnumberOfRequiredHashEntries, numberOfRequiredParameters, validateappend, getHashValue, isSection, isUnescapeVariable, isVariablegetConfigurationKeys, checkNotInitialized, initclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConfigurationKeys, initprotected java.lang.String defaultFormat(java.lang.Object value,
java.util.Locale locale,
java.util.TimeZone timeZone)
defaultFormat in class AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>protected java.lang.String format(java.lang.Object value,
java.lang.Integer style,
java.util.Locale locale,
java.util.TimeZone timeZone)
format in class AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>protected java.lang.String format(java.lang.Object value,
java.lang.String pattern,
java.util.Locale locale,
java.util.TimeZone timeZone)
format in class AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>protected java.lang.Object getFormattableObject(java.lang.Object value,
java.util.Locale locale,
java.util.TimeZone timeZone,
MustacheTagInfo tagInfo)
getFormattableObject in class AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>protected java.lang.Integer parseStyle(java.lang.String style,
MustacheTagInfo tagInfo)
parseStyle in class AbstractTimeFormatHelper<java.lang.Object,java.lang.Integer>Copyright © 2014. All Rights Reserved.