public class KeyGeneratorAdapter extends Object implements KeyGenerator
Constructor and Description |
---|
KeyGeneratorAdapter(com.google.gwt.i18n.rebind.keygen.KeyGenerator keygen) |
Modifier and Type | Method and Description |
---|---|
String |
generateKey(Message msg)
Generates a key for a given method with its default text and meaning.
|
String |
toString() |
public KeyGeneratorAdapter(com.google.gwt.i18n.rebind.keygen.KeyGenerator keygen)
keygen
- public String generateKey(Message msg)
KeyGenerator
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.
generateKey
in interface KeyGenerator
msg
- the message to generate a key forCopyright © 2018. All rights reserved.