public interface NlsFormatterManager
NlsFormatters. | Modifier and Type | Field and Description |
|---|---|
static String |
STYLE_CURRENCY |
static String |
STYLE_FULL |
static String |
STYLE_INTEGER |
static String |
STYLE_ISO_8601 |
static String |
STYLE_LONG |
static String |
STYLE_MEDIUM |
static String |
STYLE_PERCENT |
static String |
STYLE_SHORT |
static String |
TYPE_CHOICE |
static String |
TYPE_DATE |
static String |
TYPE_DATETIME |
static String |
TYPE_NUMBER |
static String |
TYPE_TIME |
static String |
TYPE_TYPE
Format for
Type |
| Modifier and Type | Method and Description |
|---|---|
NlsFormatter<Object> |
getFormatter()
This method gets the default
NlsFormatter. |
NlsFormatter<?> |
getFormatter(String formatType)
This method gets the
NlsFormatter for the given formatType. |
NlsFormatter<?> |
getFormatter(String formatType,
String formatStyle)
|
static final String TYPE_NUMBER
NumberFormat,
Constant Field Valuesstatic final String TYPE_DATE
static final String TYPE_TIME
static final String TYPE_DATETIME
static final String TYPE_CHOICE
ChoiceFormat,
Constant Field Valuesstatic final String TYPE_TYPE
Typestatic final String STYLE_SHORT
DateFormat.SHORT,
Constant Field Valuesstatic final String STYLE_MEDIUM
DateFormat.MEDIUM,
Constant Field Valuesstatic final String STYLE_LONG
DateFormat.LONG,
Constant Field Valuesstatic final String STYLE_FULL
DateFormat.FULL,
Constant Field Valuesstatic final String STYLE_INTEGER
static final String STYLE_CURRENCY
static final String STYLE_PERCENT
static final String STYLE_ISO_8601
Iso8601Util,
Constant Field ValuesNlsFormatter<Object> getFormatter()
NlsFormatter. NlsFormatter instance.getFormatter(String, String)NlsFormatter<?> getFormatter(String formatType)
formatType - is the type to be formatted.NlsFormatter instance.getFormatter(String, String)NlsFormatter<?> getFormatter(String formatType, String formatStyle)
NlsFormatter for the given formatType and
formatStyle. MessageFormat the following types and styles need to be supported
by the implementation: formatType:
formatStyle:
shortmediumlongfullintegercurrencypercentChoiceFormats is NOT provided in a compatible way as by hacking
internal arrays of MessageFormat. Instead this implementation provides a clean
configuration via formatStyle when formatType is choice (see
NlsFormatterChoice).formatType - is the type to be formatted.formatStyle - is the style defining details of formatting.NlsFormatter instance.MessageFormatCopyright © 2001–2015 mmm-Team. All rights reserved.