当前页面:
在线文档首页 >
JBOSS Portal 2.2 API 英文版文档
LocalizedString - JBOSS Portal 2.2 API 英文版文档
org.jboss.portal.common.util
Class LocalizedString
java.lang.Object
org.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 |
LocalizedString
public LocalizedString(java.util.Map values,
java.util.Locale defaultLocale)
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 descriptionresolve
- 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.