com.jeta.open.i18n
Class I18NHelper

java.lang.Object
  extended by com.jeta.open.i18n.I18NHelper

public class I18NHelper
extends Object

This is a utility class for dealing with internationalization issues


Method Summary
 String _getLocalizedMessage(ResourceBundle bundle, String messageId)
           
 char closeParenthesis()
           
 char comma()
           
 boolean equals(String arg1, String arg2)
           
 String format(String template, Object[] arguments)
           
static I18NHelper getInstance()
           
 String getLocalizedMessage(String messageId)
           
 void loadBundle(String bundleName)
           
 char newline()
           
 char openParenthesis()
           
 char semicolon()
           
 void setLocale(Locale locale)
           
 char space()
           
 boolean toBoolean(String strVal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

equals

public boolean equals(String arg1,
                      String arg2)

getInstance

public static I18NHelper getInstance()

loadBundle

public void loadBundle(String bundleName)

setLocale

public void setLocale(Locale locale)

format

public String format(String template,
                     Object[] arguments)
Returns:
a locale specific message string for a message with a variable number of arguments. Allows string messages to be composed dynamically.

_getLocalizedMessage

public String _getLocalizedMessage(ResourceBundle bundle,
                                   String messageId)

getLocalizedMessage

public String getLocalizedMessage(String messageId)

toBoolean

public boolean toBoolean(String strVal)

closeParenthesis

public char closeParenthesis()

comma

public char comma()

newline

public char newline()

openParenthesis

public char openParenthesis()

semicolon

public char semicolon()

space

public char space()


Copyright © 2005-2007 Jeff Tassin & Todd Viegut. All Rights Reserved.