站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.2 API 英文版文档

LocalizedString - JBOSS Portal 2.2 API 英文版文档


org.jboss.portal.common.util
Class LocalizedString

java.lang.Object
  extended byorg.jboss.portal.common.util.LocalizedString

public class LocalizedString
extends java.lang.Object

A localized string.


Constructor Summary
LocalizedString(java.util.Map values, java.util.Locale defaultLocale)
           
 
Method Summary
 java.util.Locale getDefaultLocale()
          Return the default locale of this description.
 java.lang.String getValue(java.util.Locale locale, boolean resolve)
          Return a localized value of the description.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalizedString

public LocalizedString(java.util.Map values,
                       java.util.Locale defaultLocale)
Method Detail

getValue

public java.lang.String getValue(java.util.Locale locale,
                                 boolean resolve)
Return a localized value of the description.

Parameters:
locale - the desired locale for the description
resolve - true if the locale must be resolved to the most appropriate
Returns:
the description value or null if it is not found

getDefaultLocale

public java.util.Locale getDefaultLocale()
Return the default locale of this description.