public abstract class AbstractNlsFormatterManager extends AbstractComponent 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 |
private static org.slf4j.Logger |
LOG |
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.
|
getInitializationState, initializeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFormatterprivate static final org.slf4j.Logger LOG
protected 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. protected void 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()
doInitialize in class AbstractComponentprotected 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–2019 mmm-Team. All rights reserved.