public class C10NBundleKey extends Object
A bundle key used to look up the translation in a ResourceBundle.
Bundle key consists of the the key actually used to look up in the bundle, as well as
the key, declared by the user, using C10NKey annotaion, if any.
If the C10NKey annotation has in any way affected the bundle key generation
process, i.e. either the annotation was declared on the enclosing class or on the method
itself, then the bundle key is considered custom (isCustomKey() will be true).
| Constructor and Description |
|---|
C10NBundleKey(boolean customKey,
String key,
String declaredKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getDeclaredKey()
The bundle key as it appeared in the
C10NKey annotation
value. |
String |
getKey()
The bundle key used for retrieval from the bundle.
|
int |
hashCode() |
boolean |
isCustomKey()
Determines whether the key was automatically generated
by c10n, or customised by the user using
the
C10NKey annotation, either on one of the
parent classes, or the method directly, or both. |
String |
toString() |
public boolean isCustomKey()
Determines whether the key was automatically generated
by c10n, or customised by the user using
the C10NKey annotation, either on one of the
parent classes, or the method directly, or both.
true, else false.public String getKey()
The bundle key used for retrieval from the bundle.
public String getDeclaredKey()
The bundle key as it appeared in the C10NKey annotation
value. If annotation was not specified, returns null
C10NKey annotation, or null if
none was declared.Copyright © 2013. All Rights Reserved.