public abstract class AbstractMessageResolver extends Object implements MessageResolver
resolve(RuleResultDetail)
which uses String.format(String,
Object...)
to resolve messages. When no message is found for a particular key, the key and the RuleResultDetail.getParameters()
are used to construct a message.Constructor and Description |
---|
AbstractMessageResolver() |
Modifier and Type | Method and Description |
---|---|
protected abstract String |
getMessage(String key)
Returns the message for the supplied key.
|
String |
resolve(RuleResultDetail detail)
Resolves the message for the supplied rule result detail.
|
protected abstract String getMessage(String key)
key
- which corresponds to a messagepublic String resolve(RuleResultDetail detail)
MessageResolver
resolve
in interface MessageResolver
detail
- rule result detailCopyright © 2003-2022 Virginia Tech. All Rights Reserved.