org.argouml.cognitive
Class Translator

java.lang.Object
  extended byorg.argouml.cognitive.Translator

public class Translator
extends Object


Field Summary
private static AbstractCognitiveTranslator translator
           
 
Constructor Summary
Translator()
           
 
Method Summary
static String localize(String key)
           
static String messageFormat(String key, Object[] args)
           
static void setTranslator(AbstractCognitiveTranslator trans)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

translator

private static AbstractCognitiveTranslator translator
Constructor Detail

Translator

public Translator()
Method Detail

setTranslator

public static void setTranslator(AbstractCognitiveTranslator trans)
Parameters:
trans - the translator

localize

public static String localize(String key)
Parameters:
key - the key for the string to be localized
Returns:
the localized string

messageFormat

public static String messageFormat(String key,
                                   Object[] args)
Parameters:
key - the key for the string to be localized
args - arguments that will be inserted in the string
Returns:
the localized string containing the arguments


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook