public class Messages extends Object
Modifier and Type | Field and Description |
---|---|
protected static String |
BUILT_IN_DEFAULT_LANG |
protected MessagesBundle |
defaultMessages |
protected Map<String,MessagesBundle> |
messages |
protected Messages |
parent |
protected MessagesProvider |
provider |
Constructor and Description |
---|
Messages(Messages parent,
MessagesProvider provider) |
Modifier and Type | Method and Description |
---|---|
MessagesBundle |
getMessagesBundle() |
MessagesBundle |
getMessagesBundle(String language) |
Object |
getObject(String key) |
Object |
getObject(String key,
String language) |
String |
getString(String key) |
String |
getString(String key,
String language) |
String[] |
getStringArray(String key) |
String[] |
getStringArray(String key,
String language) |
protected final MessagesProvider provider
protected final Map<String,MessagesBundle> messages
protected MessagesBundle defaultMessages
protected static final String BUILT_IN_DEFAULT_LANG
public Messages(Messages parent, MessagesProvider provider)
public MessagesBundle getMessagesBundle()
public MessagesBundle getMessagesBundle(String language)
public String[] getStringArray(String key)
public String[] getStringArray(String key, String language)
Copyright © 2018 Nuxeo. All rights reserved.