Package com.sap.cds.services.messages
Interface MessageLookup
public interface MessageLookup
MessageLookup provides all information to lookup localized messages via CdsRuntime.getLocalizedMessage(String, Object[], java.util.Locale) in different languages.-
Method Summary
Modifier and TypeMethodDescriptionstatic MessageLookupCreates a newMessageLookupObject[]getArgs()
-
Method Details
-
create
Creates a newMessageLookup- Parameters:
messageOrKey- The formatting message, based on SLF4J'sMessageFormatter, or a key to a message format in the resource bundles.args- The argument objects for the format string.- Returns:
- the
MessageLookup
-
getMessageOrKey
String getMessageOrKey()- Returns:
- The formatting message, based on SLF4J's
MessageFormatter, or a key to a message format in the resource bundles.
-
getArgs
Object[] getArgs()- Returns:
- The argument objects for the format string.
-