public class NlsFormatterMap extends AbstractComponent
Map
to register
and
retrieve
NlsFormatter
s. default formatter
is NOT stored in
this map.ConfiguredNlsFormatterMap
Modifier and Type | Field and Description |
---|---|
private Map<String,Map<String,NlsFormatter<?>>> |
builders |
Constructor and Description |
---|
NlsFormatterMap()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
NlsFormatter<?> |
getFormatter(String formatType,
String formatStyle) |
NlsFormatter<?> |
registerFormatter(NlsFormatter<?> formatter,
String formatType,
String formatStyle)
This method registers the given
formatBuilder . |
NlsFormatter<?> |
registerFormatter(NlsFormatterPlugin<?> formatter)
This method registers the given
formatBuilder . |
doInitialize, doInitialized, getInitializationState, initialize
private final Map<String,Map<String,NlsFormatter<?>>> 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(NlsFormatter<?> 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 NlsFormatter<?> 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–2014 mmm-Team. All rights reserved.