net.sf.mmm.util.nls.api
Class NlsArgument

java.lang.Object
  extended by net.sf.mmm.util.nls.api.NlsArgument

public class NlsArgument
extends Object

This class represents an argument of an NlsMessage.

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

Field Summary
private  NlsFormatter<?> formatter
           
private  Justification justification
           
private  String key
           
 
Constructor Summary
NlsArgument(String key, NlsFormatter<?> formatter, Justification justification)
          The constructor.
 
Method Summary
 NlsFormatter<?> getFormatter()
          Is the formatter used to format the argument.
 Justification getJustification()
          This method gets the optional Justification.
 String getKey()
          This method gets the key of the argument to format.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

key

private final String key
See Also:
getKey()

formatter

private final NlsFormatter<?> formatter
See Also:
getFormatter()

justification

private final Justification justification
See Also:
getJustification()
Constructor Detail

NlsArgument

public NlsArgument(String key,
                   NlsFormatter<?> formatter,
                   Justification justification)
The constructor.

Parameters:
key - is the key.
formatter - is the formatter.
justification - is the justification.
Method Detail

getKey

public String getKey()
This method gets the key of the argument to format.

Returns:
the key

getFormatter

public NlsFormatter<?> getFormatter()
Is the formatter used to format the argument.

Returns:
the formatter

getJustification

public Justification getJustification()
This method gets the optional Justification.

Returns:
the justification or null for none.

toString

public String toString()

Overrides:
toString in class Object


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