Copyright 2002 by aragost

com.aragost.text
Class MapMessageFormat

java.lang.Object
  |
  +--com.aragost.text.MapMessageFormat

public class MapMessageFormat
extends java.lang.Object


Field Summary
static java.lang.String ldel
          Left delimiter
static java.lang.String rdel
          Right delimiter
 
Constructor Summary
MapMessageFormat(java.lang.String pattern)
          Create a new MapMessageFormat with the specified pattern.
 
Method Summary
 java.lang.String format(java.util.Map args)
          Format the pattern of the receiver with the given arguments
static java.lang.String format(java.lang.String pattern, java.util.Map arguments)
          Format the specified pattern with the given arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ldel

public static final java.lang.String ldel
Left delimiter

See Also:
Constant Field Values

rdel

public static final java.lang.String rdel
Right delimiter

See Also:
Constant Field Values
Constructor Detail

MapMessageFormat

public MapMessageFormat(java.lang.String pattern)
Create a new MapMessageFormat with the specified pattern. If you only use a pattern once you can use MapMessageFormat.format(pattern, arguments) .

Parameters:
pattern - String to be parsed.
Method Detail

format

public static java.lang.String format(java.lang.String pattern,
                                      java.util.Map arguments)
Format the specified pattern with the given arguments. If you use the same pattern multiple times, it is more efficient to create a MapMessageFormat and reuse it.

Parameters:
pattern - Pattern to replace the arguments in.
arguments - Map with key-value pairs to replace.
Returns:
Formatted string

format

public java.lang.String format(java.util.Map args)
Format the pattern of the receiver with the given arguments


Copyright 2002 by aragost