|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.krad.util.MessageUtils
public class MessageUtils
| Constructor Summary | |
|---|---|
MessageUtils()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageUtils()
| Method Detail |
|---|
public static String interpolate(String message,
String... data)
message - the message to be interpolateddata - Map
public static String interpolate(String message,
Map<String,Object> data)
message - the message to be interpolateddata - varargs to be used for interpolation
public 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 targets
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||