public class

MD5KeyGenerator

extends Object
implements KeyGenerator
java.lang.Object
   ↳ com.google.gwt.i18n.rebind.keygen.MD5KeyGenerator

Class Overview

Key generator using the MD5 hash of the text and meaning.

Summary

Public Constructors
MD5KeyGenerator()
Public Methods
String generateKey(String className, String methodName, String text, String meaning)
Generates a key for a given method with its default text and meaning.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.i18n.rebind.keygen.KeyGenerator

Public Constructors

public MD5KeyGenerator ()

Public Methods

public String generateKey (String className, String methodName, String text, String meaning)

Generates a key for a given method with its default text and meaning.

Parameters
className fully qualified name of the Messages/Constants subinterface
methodName name of the method in the subinterface
text default text to use if no translation is available, which may be null if no default text is supplied
meaning extra text explaining the meaning of the text, or null if not needed
Returns
  • the lookup key as a string or null if the key cannot be computed (for example, if text is null but this generator requires it)