net.sf.mmm.util.nls.impl.formatter
Class NlsArgumentFormatterImpl
java.lang.Object
net.sf.mmm.util.component.base.AbstractComponent
net.sf.mmm.util.component.base.AbstractLoggableComponent
net.sf.mmm.util.nls.base.AbstractNlsFormatter<NlsArgument>
net.sf.mmm.util.nls.impl.formatter.NlsArgumentFormatterImpl
- All Implemented Interfaces:
- NlsFormatter<NlsArgument>, NlsArgumentFormatter
@Singleton
@Named
public class NlsArgumentFormatterImpl
- extends AbstractNlsFormatter<NlsArgument>
- implements NlsArgumentFormatter
The NlsFormatter for an actual NlsArgument. It performs the
higher-level formatting with justification delegating the lower-level formatting to the
according sub-formatter (typically a
NlsFormatterPlugin).
- Since:
- 2.0.0
- Author:
- Joerg Hohwiller (hohwille at users.sourceforge.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NlsArgumentFormatterImpl
public NlsArgumentFormatterImpl()
- The constructor.
format
public void format(NlsArgument argument,
Locale locale,
Map<String,Object> arguments,
NlsTemplateResolver resolver,
Appendable buffer)
throws IOException
- This method formats the given
object according to the given
locale.
- Specified by:
format in interface NlsFormatter<NlsArgument>
- Parameters:
argument - is the object to format.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.
- Throws:
IOException - if the given Appendable caused such exception.
Copyright © 2001-2010 mmm-Team. All Rights Reserved.