com.novell.util
Class MessageString
java.lang.Object
com.novell.util.MessageString
- public class MessageString
- extends Object
Class to handle message string for internationalization
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
composeString
public static String composeString(String base,
String[] parms)
- Compose a string from a base string and an array
of parameters strings.
The base string may have zero or more replacement tokens. Each
replacement token is of the form '%' + 1 or more digits. The
parameter string corresponding to the number represented by
the digits minus one is used to replace the replacement token.
For example, "This %2 a %1", with the array
String parms[] =
{ "test", "is"};
will result in the string "This is a test".
- Parameters:
base
- The base string with replacement tokens.parms
- An array of replacement strings
- Returns:
- The composed string