public class MessageUtils extends Object
| Constructor and Description |
|---|
MessageUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
findFields(String input)
Returns a Set
|
static String |
interpolate(String message,
Map<String,Object> data)
Interpolates a message based on parameter index, assuming message is formatted using a ${0}..${n} syntax
|
static String |
interpolate(String message,
String... data)
Interpolates a message based on values contained in the data map, assuming message is formatted using a ${key} syntax.
|
static String |
interpolate(String message,
String parameter,
Object value)
Interpolates a message which requires only a single property replacement.
|
public MessageUtils()
public static String interpolate(String message, String... data)
message - the message to be interpolateddata - Mappublic static String interpolate(String message, Map<String,Object> data)
message - the message to be interpolateddata - varargs to be used for interpolationpublic static String interpolate(String message, String parameter, Object value)
message - parameter - value - public static Set<String> findFields(String input)
input - the String from which to extract the interpolation targetsCopyright © 2005–2014 The Kuali Foundation. All rights reserved.