public class NlsFormatterMap extends AbstractComponent
Map to register and
retrieve NlsFormatters. default formatter is NOT stored in this map.ConfiguredNlsFormatterMap| Modifier and Type | Field and Description |
|---|---|
private Map<String,Map<String,NlsFormatterPlugin<?>>> |
builders |
| Constructor and Description |
|---|
NlsFormatterMap()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
NlsFormatterPlugin<?> |
getFormatter(String formatType,
String formatStyle) |
NlsFormatter<?> |
registerFormatter(NlsFormatterPlugin<?> formatter)
This method registers the given
formatBuilder. |
NlsFormatter<?> |
registerFormatter(NlsFormatterPlugin<?> formatter,
String formatType,
String formatStyle)
This method registers the given
formatBuilder. |
doInitialize, doInitialized, getInitializationState, initializeprivate final Map<String,Map<String,NlsFormatterPlugin<?>>> builders
getFormatter(String, String)public NlsFormatter<?> registerFormatter(NlsFormatterPlugin<?> formatter)
formatBuilder.formatter - is the NlsFormatterPlugin to register.NlsFormatter that was registered for the given type and
style and is now replaced by the given formatter or
null if no NlsFormatter was replaced.public NlsFormatter<?> registerFormatter(NlsFormatterPlugin<?> formatter, String formatType, String formatStyle)
formatBuilder.formatter - is the formatter to register.formatType - is the type to be formatted.formatStyle - is the style defining details of formatting. May be null for default formatter.NlsFormatter that was registered for the given formatType and formatStyle and
is now replaced by the given formatter or null if no NlsFormatter was replaced.public NlsFormatterPlugin<?> getFormatter(String formatType, String formatStyle)
formatType - is the type to be formatted.formatStyle - is the style defining details of formatting. May be null for default formatter of the
given formatType.NlsFormatter instance or null if NO such NlsFormatter is
registered .NlsFormatterManager.getFormatter(String, String)Copyright © 2001–2016 mmm-Team. All rights reserved.