|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.nls.base.AbstractNlsFormatterManager
public abstract class AbstractNlsFormatterManager
This is the abstract base implementation of the NlsFormatterManager
interface.
You should extend this class rather than directly implementing the
NlsFormatterManager interface to gain compatibility with further
releases.
| Field Summary | |
|---|---|
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 '}'. |
| Fields inherited from interface net.sf.mmm.util.nls.api.NlsFormatterManager |
|---|
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_TYPE |
| Fields inherited from interface net.sf.mmm.util.nls.api.NlsArgumentParser |
|---|
END_EXPRESSION, FORMAT_SEPARATOR, START_EXPRESSION |
| Constructor Summary | |
|---|---|
AbstractNlsFormatterManager()
The constructor. |
|
| Method Summary | |
|---|---|
protected void |
doInitialize()
This method performs the actual initialization. |
NlsFormatter<Object> |
getFormatter()
This method gets the default NlsFormatter. |
NlsFormatter<?> |
getFormatter(String formatType)
This method gets the NlsFormatter for the given
formatType. |
protected JustificationBuilder |
getJustificationBuilder()
This method gets the JustificationBuilder used to
build Justifications. |
protected NlsFormatter<?> |
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)
|
| Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent |
|---|
getLogger, setLogger |
| Methods inherited from class net.sf.mmm.util.component.base.AbstractComponent |
|---|
doInitialized, getInitializationState, initialize |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface net.sf.mmm.util.nls.api.NlsFormatterManager |
|---|
getFormatter |
| Field Detail |
|---|
protected static final CharFilter NO_COMMA_OR_END_EXPRESSION
protected static final CharFilter NO_EXPRESSION
private JustificationBuilder justificationBuilder
getJustificationBuilder()| Constructor Detail |
|---|
public AbstractNlsFormatterManager()
| Method Detail |
|---|
public NlsArgument parse(CharSequenceScanner scanner)
internationalized 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 NlsFormatter<?> 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()
initialization. It is
called when AbstractComponent.initialize() is invoked for the first time.super.AbstractComponent.doInitialize().
doInitialize in class AbstractLoggableComponentprotected JustificationBuilder getJustificationBuilder()
JustificationBuilder used to
build Justifications.
JustificationBuilder.@Inject public void setJustificationBuilder(JustificationBuilder justificationBuilder)
justificationBuilder - is the justificationBuilder to setpublic NlsFormatter<Object> getFormatter()
NlsFormatter.
getFormatter in interface NlsFormatterManagerNlsFormatter instance.NlsFormatterManager.getFormatter(String, String)public NlsFormatter<?> getFormatter(String formatType)
NlsFormatter for the given
formatType.
getFormatter in interface NlsFormatterManagerformatType - is the type to be formatted.
NlsFormatter instance.NlsFormatterManager.getFormatter(String, String)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||