public class NlsMessageDescriptor extends Object
Modifier and Type | Field and Description |
---|---|
private NlsArgumentDescriptor[] |
arguments |
private String |
key |
private String |
message |
private Method |
method |
Constructor and Description |
---|
NlsMessageDescriptor(Method method)
The constructor.
|
NlsMessageDescriptor(String key,
String message,
NlsArgumentDescriptor[] arguments)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
NlsArgumentDescriptor |
getArgument(int index) |
NlsArgumentDescriptor |
getArgument(String argumentKey) |
int |
getArgumentCount() |
private NlsArgumentDescriptor[] |
getArguments() |
String |
getKey() |
String |
getMessage() |
Method |
getMethod() |
private final Method method
private final String key
private final String message
private NlsArgumentDescriptor[] arguments
NlsMessageDescriptor(Method method)
method
- the NlsBundle
Method
.bundleHelper
- the NlsBundleHelper
instance.public NlsMessageDescriptor(String key, String message, NlsArgumentDescriptor[] arguments)
key
- - see getKey()
.message
- - see getMessage()
.arguments
- - see getArgument(int)
.public Method getMethod()
public String getKey()
public String getMessage()
private NlsArgumentDescriptor[] getArguments()
public NlsArgumentDescriptor getArgument(int index)
index
- the index
of the requested NlsArgumentDescriptor
in
the range from 0
to getArgumentCount()
- 1
.NlsArgumentDescriptor
for the given index
.public int getArgumentCount()
arguments
.public NlsArgumentDescriptor getArgument(String argumentKey)
argumentKey
- the key
of the requested NlsArgumentDescriptor
.NlsArgumentDescriptor
for the given key
or null
if not found.Copyright © 2001–2016 mmm-Team. All rights reserved.