-
- All Superinterfaces:
NlsFormatter<Object>
public interface NlsFormatterPlugin extends NlsFormatter<Object>
This interface extendsNlsFormatter
with the methods required to register this automatically as plugin.
If noNlsFormatterPlugin
with defaultstyle
(null
) is found for sometype
the one withmedium
style is used as default.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getStyle()
This method gets thestyle
of this formatter.String
getType()
This method gets thetype
of this formatter.-
Methods inherited from interface io.github.mmm.nls.formatter.NlsFormatter
format, format
-
-
-
-
Method Detail
-
getType
String getType()
This method gets thetype
of this formatter. SeeTYPE_*
constants ofNlsFormatterManager
e.g.NlsFormatterManager.TYPE_NUMBER
.- Returns:
- the type or
null
for thedefault formatter
. If type isnull
then alsostyle
needs to benull
.
-
getStyle
String getStyle()
This method gets thestyle
of this formatter. SeeSTYLE_*
constants ofNlsFormatterManager
e.g.NlsFormatterManager.STYLE_LONG
.- Returns:
- the style or
null
for no style.
-
-