public class DefaultContext extends Object implements Context, StandardContext
Context.| Constructor and Description |
|---|
DefaultContext() |
DefaultContext(Locale locale) |
public DefaultContext()
public DefaultContext(Locale locale)
public String digitStrings(int index)
digitStrings in interface Contextpublic String formatDate(int style, Date value)
formatDate in interface Contextpublic String formatDateTime(Date date)
formatDateTime in interface Contextpublic String formatDateTime(int dateStyle, int timeStyle, Date date)
formatDateTime in interface Contextpublic String formatDecimal(Number value)
formatDecimal in interface Contextpublic String formatMessage(String key, Object... args)
formatMessage in interface Contextpublic String formatRelativeDate(Date reference, Date duration)
formatRelativeDate in interface StandardContextpublic String formatRelativeDate(Date reference, Date duration, long precision)
formatRelativeDate in interface StandardContextpublic ResourceBundle getBundle()
public DecimalFormat getCurrencyFormat()
getCurrencyFormat in interface StandardContextpublic DateFormat getDateFormat(int style)
getDateFormat in interface StandardContextpublic DateFormat getDateFormat(String pattern)
getDateFormat in interface StandardContextpublic DateFormat getDateTimeFormat()
getDateTimeFormat in interface StandardContextpublic DateFormat getDateTimeFormat(int dateStyle, int timeStyle)
getDateTimeFormat in interface StandardContextpublic DecimalFormat getDecimalFormat()
getDecimalFormat in interface StandardContextpublic MaskFormat getMaskFormat()
getMaskFormat in interface Contextpublic String getMessage(String key)
getMessage in interface Contextpublic MessageFormat getMessageFormat()
getMessageFormat in interface StandardContextpublic NumberFormat getNumberFormat()
getNumberFormat in interface StandardContextpublic DecimalFormat getPercentFormat()
getPercentFormat in interface StandardContextpublic PrettyTimeFormat getPrettyTimeFormat()
getPrettyTimeFormat in interface StandardContextpublic String ordinalSuffix(int index)
ordinalSuffix in interface StandardContextpublic String timeSuffix(int index)
timeSuffix in interface StandardContextprotected Collection<String> getStringList(String cacheName)
Copyright © 2015. All Rights Reserved.