|
||||||||||
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 | |
---|---|
java.lang.String |
getMessage(java.lang.String key)
Retrieves a message with the given key . |
java.lang.String |
substitute(java.lang.String string,
java.util.Map vars)
Performs variable substitution on the given String using variables declared in
the vars Map . |
Method Detail |
---|
java.lang.String getMessage(java.lang.String key)
key
.
key
- a message key
java.lang.String substitute(java.lang.String string, java.util.Map vars) throws java.lang.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
java.lang.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 |