Package com.microstrategy.web.beans
Interface Messages
- 
public interface MessagesThe interface encapsulates messages information. The default locale isLocale.US.- Since:
 - MicroStrategy Web 7.3.1 or earlier
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Enumeration<java.lang.String>getKeys()Returns an enumeration of the keys.java.util.LocalegetLocale()Returns thejava.util.Localeobject of the current Messages.java.lang.StringgetLocaleId()Return the locale ID of this messages.MessagesManagergetMessagesManager()Returns theMessagesManagerfor this messages.java.lang.StringgetString(java.lang.String key)Returns the String descriptor mapped to the specified key.java.lang.StringgetString(java.lang.String key, java.lang.String defultValue)Returns the String descriptor mapped to the specified key.java.lang.String[]getStringArray(java.lang.String key)Returns anArrayof String descriptors mapped by the specified key.booleanhasString(java.lang.String key)Returns whether a String descriptor exists for the specified key. 
 - 
 
- 
- 
Method Detail
- 
getString
java.lang.String getString(java.lang.String key)
Returns the String descriptor mapped to the specified key.- Parameters:
 key- the key of the descriptor.- Returns:
 - the descriptor mapped to the specified key.
 
 
- 
getString
java.lang.String getString(java.lang.String key, java.lang.String defultValue)Returns the String descriptor mapped to the specified key.- Parameters:
 key- the key of the descriptor.the- defaultValue for the key- Returns:
 - the descriptor mapped to the specified key.
 
 
- 
getStringArray
java.lang.String[] getStringArray(java.lang.String key)
Returns anArrayof String descriptors mapped by the specified key.- Parameters:
 key- the key of the descriptor.- Returns:
 - an Array of descriptors mapped to the specified key.
 
 
- 
getKeys
java.util.Enumeration<java.lang.String> getKeys()
Returns an enumeration of the keys.- Returns:
 
 
- 
getLocale
java.util.Locale getLocale()
Returns thejava.util.Localeobject of the current Messages.- Returns:
 - the 
java.util.Localeobject. 
 
- 
getLocaleId
java.lang.String getLocaleId()
Return the locale ID of this messages.- Returns:
 - the locale ID.
 
 
- 
getMessagesManager
MessagesManager getMessagesManager()
Returns theMessagesManagerfor this messages.- Returns:
 - the 
MessagesManager. 
 
- 
hasString
boolean hasString(java.lang.String key)
Returns whether a String descriptor exists for the specified key.- Parameters:
 key- The key of the descriptor.- Returns:
 trueif the key has a string descriptor; otherwisefalse.
 
 - 
 
 -