public class NlsBundleDescriptor extends Object
NlsBundle
or ResourceBundle
.Modifier and Type | Field and Description |
---|---|
private NlsBundleHelper |
bundleHelper |
private String |
name |
private Class<? extends NlsBundle> |
nlsBundleInterface
|
private String |
packageName |
private String |
packagePath |
private Map<String,NlsMessageDescriptor> |
properties |
private String |
qualifiedName |
private String |
qualifiedNamePath |
private ResourceBundle |
resourceBundle
|
Modifier | Constructor and Description |
---|---|
|
NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface)
The constructor.
|
private |
NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface,
ResourceBundle resourceBundle) |
private |
NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface,
ResourceBundle resourceBundle,
NlsBundleHelper bundleHelper) |
|
NlsBundleDescriptor(ResourceBundle resourceBundle)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
private NlsArgumentDescriptor[] |
getArguments(String message) |
NlsMessageDescriptor |
getMessage(String key) |
NlsMessageDescriptor |
getMessageRequired(String key) |
Map<String,NlsMessageDescriptor> |
getMessages() |
String |
getName() |
String |
getPackageName() |
String |
getPackagePath() |
String |
getQualifiedName() |
String |
getQualifiedNamePath() |
private final ResourceBundle resourceBundle
private Map<String,NlsMessageDescriptor> properties
private final String qualifiedName
private final String packageName
private final String packagePath
private final String qualifiedNamePath
private final String name
private final NlsBundleHelper bundleHelper
public NlsBundleDescriptor(ResourceBundle resourceBundle)
resourceBundle
- is the ResourceBundle
.public NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface)
nlsBundleInterface
- is the NlsBundle
interface.private NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface, ResourceBundle resourceBundle)
private NlsBundleDescriptor(Class<? extends NlsBundle> nlsBundleInterface, ResourceBundle resourceBundle, NlsBundleHelper bundleHelper)
public String getQualifiedName()
public String getQualifiedNamePath()
qualified name
as path (e.g. "net/sf/mmm/util/cli/NlsBundleUtilCli" for
name "net.sf.mmm.util.cli.NlsBundleUtilCli").public String getName()
public String getPackagePath()
package name
as path (e.g. "net/sf/mmm/util/cli" for name
"net.sf.mmm.util.cli").public Map<String,NlsMessageDescriptor> getMessages()
Map
.public NlsMessageDescriptor getMessage(String key)
key
- the key
of the requested message.NlsMessageDescriptor
for the given key
or null
if not present.public NlsMessageDescriptor getMessageRequired(String key)
key
- the key
of the requested message.NlsMessageDescriptor
for the given key
or null
if not present.private NlsArgumentDescriptor[] getArguments(String message)
Copyright © 2001–2016 mmm-Team. All rights reserved.