public interface NlsMessageFormatter extends NlsFormatter<Void>
MessageFormat.| Modifier and Type | Method and Description |
|---|---|
void |
format(Void nothing,
Locale locale,
Map<String,Object> arguments,
NlsTemplateResolver resolver,
Appendable buffer)
This method formats the underlying pattern by filling in the given
arguments and writing the result into
the given buffer. |
void |
visit(Visitor<String> staticTextVisitor,
Visitor<NlsArgument> dynamicArgumentVisitor)
Visits the child elements of this
NlsMessageFormatter. |
formatvoid format(Void nothing, Locale locale, Map<String,Object> arguments, NlsTemplateResolver resolver, Appendable buffer) throws IOException
arguments and writing the result into
the given buffer.
This method formats the given object according to the given locale.format in interface NlsFormatter<Void>nothing - has to be null. Only for generic compatibility.locale - is the locale used for localized formatting.arguments - is the Map of arguments.resolver - is the NlsTemplateResolver.buffer - is where to append the formatted object.IOException - if the given Appendable caused such exception.void visit(Visitor<String> staticTextVisitor, Visitor<NlsArgument> dynamicArgumentVisitor)
NlsMessageFormatter.staticTextVisitor - a Visitor for the static text segments.dynamicArgumentVisitor - a Visitor for the NlsArguments.Copyright © 2001–2016 mmm-Team. All rights reserved.