net.sf.mmm.util.nls.base
Class AbstractNlsMessageFactory

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.AbstractNlsMessageFactory
All Implemented Interfaces:
NlsMessageFactory
Direct Known Subclasses:
NlsMessageFactoryImpl

public abstract class AbstractNlsMessageFactory
extends AbstractLoggableComponent
implements NlsMessageFactory

This is the implementation of the NlsMessageFactory interface.

Since:
1.1.0
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)

Constructor Summary
AbstractNlsMessageFactory()
          The constructor.
 
Method Summary
 NlsMessage create(NlsTemplate template)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(NlsTemplate template, Object... messageArguments)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(NlsTemplate template, String key1, Object argument1)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(NlsTemplate template, String key1, Object argument1, String key2, Object argument2)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(NlsTemplate template, String key1, Object argument1, String key2, Object argument2, String key3, Object argument3)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(NlsTemplate template, String key1, Object argument1, String key2, Object argument2, String key3, Object argument3, String key4, Object argument4)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, Object... messageArguments)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, String key1, Object argument1)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, String key1, Object argument1, String key2, Object argument2)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, String key1, Object argument1, String key2, Object argument2, String key3, Object argument3)
          This method creates a new instance of NlsMessage from the given arguments.
 NlsMessage create(String internationalizedMessage, String key1, Object argument1, String key2, Object argument2, String key3, Object argument3, String key4, Object argument4)
          This method creates a new instance of NlsMessage from the given arguments.
 
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.NlsMessageFactory
create, create
 

Constructor Detail

AbstractNlsMessageFactory

public AbstractNlsMessageFactory()
The constructor.

Method Detail

create

public NlsMessage create(String internationalizedMessage,
                         Object... messageArguments)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
messageArguments - are the arguments filled into the message after nationalization.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template,
                         Object... messageArguments)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
messageArguments - are the arguments filled into the message after nationalization.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2,
                         String key3,
                         Object argument3,
                         String key4,
                         Object argument4)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
key3 - is the key of the third argument.
argument3 - is the value of the third argument.
key4 - is the key of the fourth argument.
argument4 - is the value of the fourth argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2,
                         String key3,
                         Object argument3)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
key3 - is the key of the third argument.
argument3 - is the value of the third argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template,
                         String key1,
                         Object argument1)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(String internationalizedMessage,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2,
                         String key3,
                         Object argument3,
                         String key4,
                         Object argument4)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
key3 - is the key of the third argument.
argument3 - is the value of the third argument.
key4 - is the key of the fourth argument.
argument4 - is the value of the fourth argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(String internationalizedMessage,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2,
                         String key3,
                         Object argument3)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
key3 - is the key of the third argument.
argument3 - is the value of the third argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(String internationalizedMessage,
                         String key1,
                         Object argument1,
                         String key2,
                         Object argument2)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
key2 - is the key of the second argument.
argument2 - is the value of the second argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(String internationalizedMessage,
                         String key1,
                         Object argument1)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
key1 - is the key of the first argument.
argument1 - is the value of the first argument.
Returns:
the new NlsMessage instance.

create

public NlsMessage create(NlsTemplate template)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
template - is the NlsTemplate for the raw message.
Returns:
the new NlsMessage instance.
See Also:
NlsMessageFactory.create(NlsTemplate, Map)

create

public NlsMessage create(String internationalizedMessage)
This method creates a new instance of NlsMessage from the given arguments.

Specified by:
create in interface NlsMessageFactory
Parameters:
internationalizedMessage - is the internationalized message.
Returns:
the new NlsMessage instance.


Copyright © 2001-2010 mmm-Team. All Rights Reserved.