|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IErrorMessageSource
Interface representing a message source that stores messages by key and can perform variable substitution.
Method Summary | |
---|---|
String |
getMessage(String key)
Retrieves a message with the given key . |
String |
substitute(String string,
Map<String,Object> vars)
Performs variable substitution on the given String using variables declared in
the vars Map . |
Method Detail |
---|
String getMessage(String key)
key
.
key
- a message key
String substitute(String string, Map<String,Object> vars) throws IllegalStateException
String
using variables declared in
the vars
Map
.
Variables in the message are identified using ${varname}
syntax.
string
- a String
to be alteredvars
- a Map
of variables to process
String
with the variables substituted
IllegalStateException
- if a variable defined in the given String
cannot be found in the
vars
Map
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |