
public interface KeyGenerator
LocalizableResource
implementations.
Implementations of this interface are executed at compile time, and
therefore must not contain any JSNI code.| Modifier and Type | Method and Description |
|---|---|
String |
generateKey(Message msg)
Generates a key for a given method with its default text and meaning.
|
String generateKey(Message msg)
NOTE: currently the MessageInterface and Message implementations passed to
the key generator are incomplete as they are wrappers around the existing
functionality. Only Message.getMessageInterface(),
Message.getMethodName(), Message.getDefaultMessage(),
Message.getDescription(), Message.getMeaning(), and
Message.getMessageStyle() (and only
MessageInterface.getClassName(),
MessageInterface.getPackageName(), and
MessageInterface.getQualifiedName() on
the MessageInterface
instance returned from Message.getMessageInterface()) may be relied
upon until the i18n generator is updated.
msg - the message to generate a key forCopyright © 2018. All rights reserved.