public abstract class AbstractNlsFormatterManager extends AbstractLoggableComponent implements NlsFormatterManager, NlsArgumentParser
NlsFormatterManager interface. NlsFormatterManager interface to gain
compatibility with further releases.| Modifier and Type | Field and Description |
|---|---|
private static AbstractNlsFormatterManager |
instance |
private JustificationBuilder |
justificationBuilder |
protected static CharFilter |
NO_COMMA_OR_END_EXPRESSION
A char filter that accepts everything except ',' and '}'.
|
protected static CharFilter |
NO_EXPRESSION
A char filter that accepts everything except ',' and '}'.
|
STYLE_CURRENCY, STYLE_FULL, STYLE_INTEGER, STYLE_ISO_8601, STYLE_LONG, STYLE_MEDIUM, STYLE_PERCENT, STYLE_SHORT, TYPE_CHOICE, TYPE_DATE, TYPE_DATETIME, TYPE_NUMBER, TYPE_TIME, TYPE_TYPEEND_EXPRESSION, FORMAT_SEPARATOR, START_EXPRESSION| Constructor and Description |
|---|
AbstractNlsFormatterManager()
The constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
doInitialize()
This method performs the actual
initialization. |
protected void |
doInitialized()
This method is invoked at the end of the actual
initialization. |
NlsFormatterPlugin<Object> |
getFormatter()
This method gets the default
NlsFormatter. |
NlsFormatterPlugin<?> |
getFormatter(String formatType)
This method gets the
NlsFormatter for the given formatType. |
static AbstractNlsFormatterManager |
getInstance()
This method gets the singleton instance of this
AbstractNlsFormatterManager. |
protected JustificationBuilder |
getJustificationBuilder()
|
protected NlsFormatterPlugin<?> |
getSubFormatter(String formatType,
CharSequenceScanner scanner)
This method is like
NlsFormatterManager.getFormatter(String, String) but reads the
style from the given scanner. |
NlsArgument |
parse(CharSequenceScanner scanner)
This method parses the
internationalized message given as
CharSequenceScanner pointing the beginning of an argument (immediately after
NlsArgumentParser.START_EXPRESSION). |
void |
setJustificationBuilder(JustificationBuilder justificationBuilder) |
createLogger, getLoggergetInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatterprotected static final CharFilter NO_COMMA_OR_END_EXPRESSION
protected static final CharFilter NO_EXPRESSION
private static AbstractNlsFormatterManager instance
private JustificationBuilder justificationBuilder
public AbstractNlsFormatterManager()
public static AbstractNlsFormatterManager getInstance()
AbstractNlsFormatterManager. Cdi.GET_INSTANCE before using.protected void doInitialized()
AbstractComponentinitialization. It is called when
AbstractComponent.initialize() is invoked for the first time after AbstractComponent.doInitialize() is completed and
initialization-state has changed to initialized. super.AbstractComponent.doInitialized().doInitialized in class AbstractComponentpublic NlsArgument parse(CharSequenceScanner scanner)
NlsArgumentParserinternationalized message given as
CharSequenceScanner pointing the beginning of an argument (immediately after
NlsArgumentParser.START_EXPRESSION).parse in interface NlsArgumentParserscanner - is the CharSequenceScanner.NlsFormatter instance.NlsFormatterManager.getFormatter(String, String)protected NlsFormatterPlugin<?> getSubFormatter(String formatType, CharSequenceScanner scanner)
NlsFormatterManager.getFormatter(String, String) but reads the
style from the given scanner.formatType - is the type to be formatted.scanner - is the current CharSequenceScanner for parsing the style defining details of formatting.NlsFormatter.protected void doInitialize()
AbstractComponentinitialization. It is called when AbstractComponent.initialize() is
invoked for the first time. super.AbstractComponent.doInitialize().doInitialize in class AbstractLoggableComponentprotected JustificationBuilder getJustificationBuilder()
JustificationBuilder.@Inject public void setJustificationBuilder(JustificationBuilder justificationBuilder)
justificationBuilder - is the justificationBuilder to setpublic NlsFormatterPlugin<Object> getFormatter()
NlsFormatterManagerNlsFormatter. getFormatter in interface NlsFormatterManagerNlsFormatter instance.NlsFormatterManager.getFormatter(String, String)public NlsFormatterPlugin<?> getFormatter(String formatType)
NlsFormatterManagergetFormatter in interface NlsFormatterManagerformatType - is the type to be formatted.NlsFormatter instance.NlsFormatterManager.getFormatter(String, String)Copyright © 2001–2016 mmm-Team. All rights reserved.