public class MessageBundle extends Object
ResourceBundle
and a category. The category
typically identifies an application or a project with a short string, and the
resource bundle contains a list of messages identified by a unique string.
If care is taken to select distinct category strings for different projects composing a system, it will be possible to identify each message uniquely.
Constructor and Description |
---|
MessageBundle(String category,
ResourceBundle bundle)
Construct a message bundle and assign it a category.
|
Modifier and Type | Method and Description |
---|---|
ResourceBundle |
getBundle()
Return the resource bundle.
|
String |
getCategory()
Return the category.
|
public MessageBundle(String category, ResourceBundle bundle)
category
- a short stringbundle
- a ResourceBundle
public String getCategory()
public ResourceBundle getBundle()
Copyright © 2017. All rights reserved.