net.sf.mmm.util.nls.impl.formatter
Class NlsArgumentFormatterImpl

java.lang.Object
  extended by net.sf.mmm.util.component.base.AbstractComponent
      extended by net.sf.mmm.util.component.base.AbstractLoggableComponent
          extended by net.sf.mmm.util.nls.base.AbstractNlsFormatter<NlsArgument>
              extended by 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)

Constructor Summary
NlsArgumentFormatterImpl()
          The constructor.
 
Method Summary
 void format(NlsArgument argument, Locale locale, Map<String,Object> arguments, NlsTemplateResolver resolver, Appendable buffer)
          This method formats the given object according to the given locale.
 
Methods inherited from class net.sf.mmm.util.nls.base.AbstractNlsFormatter
format
 
Methods inherited from class net.sf.mmm.util.component.base.AbstractLoggableComponent
doInitialize, 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.NlsFormatter
format
 

Constructor Detail

NlsArgumentFormatterImpl

public NlsArgumentFormatterImpl()
The constructor.

Method Detail

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.