com.liferay.faces.util.el
Class I18N

java.lang.Object
  extended by java.util.ResourceBundle
      extended by com.liferay.faces.util.el.I18NCompat
          extended by com.liferay.faces.util.el.I18N

public class I18N
extends I18NCompat

Author:
Neil Griffin

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
 
Fields inherited from class com.liferay.faces.util.el.I18NCompat
cacheEnabled
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
I18N()
           
 
Method Summary
 Enumeration<String> getKeys()
          This method is required by the ResourceBundle abstract class, but it will never be called in the normal running of a JSF webapp using the EL.
protected  Object handleGetObject(String key)
           
 String replace(String messageId, String arg1)
          Gets the message associated with the specified messageId according to the locale in the current FacesContext.
 String replace(String messageId, String arg1, String arg2)
          Gets the message associated with the specified messageId according to the locale in the current FacesContext.
 String replace(String messageId, String arg1, String arg2, String arg3)
          Gets the message associated with the specified messageId according to the locale in the current FacesContext.
 String replace(String messageId, String arg1, String arg2, String arg3, String arg4)
          Gets the message associated with the specified messageId according to the locale in the current FacesContext.
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getLocale, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

I18N

public I18N()
Method Detail

replace

public String replace(String messageId,
                      String arg1)
Gets the message associated with the specified messageId according to the locale in the current FacesContext. This method is primarily meant to be called via EL, providing the implementation supports passing parameters (like JBoss EL).

Parameters:
messageId - The message key.
arg1 - The first argument, assuming that the messageId has a {0} token.
Returns:
The internationalized message.

replace

public String replace(String messageId,
                      String arg1,
                      String arg2)
Gets the message associated with the specified messageId according to the locale in the current FacesContext. This method is primarily meant to be called via EL, providing the implementation supports passing parameters (like JBoss EL).

Parameters:
messageId - The message key.
arg1 - The first argument, assuming that the messageId has a {0} token.
arg2 - The second argument, assuming that the messageId has a {1} token.
Returns:
The internationalized message.

replace

public String replace(String messageId,
                      String arg1,
                      String arg2,
                      String arg3)
Gets the message associated with the specified messageId according to the locale in the current FacesContext. This method is primarily meant to be called via EL, providing the implementation supports passing parameters (like JBoss EL).

Parameters:
messageId - The message key.
arg1 - The first argument, assuming that the messageId has a {0} token.
arg2 - The second argument, assuming that the messageId has a {1} token.
arg3 - The third argument, assuming that the messageId has a {2} token.
Returns:
The internationalized message.

replace

public String replace(String messageId,
                      String arg1,
                      String arg2,
                      String arg3,
                      String arg4)
Gets the message associated with the specified messageId according to the locale in the current FacesContext. This method is primarily meant to be called via EL, providing the implementation supports passing parameters (like JBoss EL).

Parameters:
messageId - The message key.
arg1 - The first argument, assuming that the messageId has a {0} token.
arg2 - The second argument, assuming that the messageId has a {1} token.
arg3 - The third argument, assuming that the messageId has a {2} token.
arg4 - The fourth argument, assuming that the messageId has a {3} token.
Returns:
The internationalized message.

handleGetObject

protected Object handleGetObject(String key)
Specified by:
handleGetObject in class ResourceBundle

getKeys

public Enumeration<String> getKeys()
This method is required by the ResourceBundle abstract class, but it will never be called in the normal running of a JSF webapp using the EL. Therefore, it just returns an empty Enumeration of Strings.

Specified by:
getKeys in class ResourceBundle


Copyright © 2015 Liferay, Inc.. All rights reserved.