Package ch.qos.cal10n.verifier
Interface IMessageKeyVerifier
- All Known Implementing Classes:
AbstractMessageKeyVerifier
,MessageKeyVerifier
,MessageKeyVerifierByTypeElement
public interface IMessageKeyVerifier
An interface for verifying that given an enum type, the keys match those
found in the corresponding resource bundles.
See also MessageKeyVerifier
for a concrete implementation.
- Author:
- Ceki Gülcü
-
Method Summary
Modifier and TypeMethodDescriptionGet the base name for the resource bundle family as specified in the enumType (via annotations)Get the name of enum type to this verifier is related to to.String[]
Get the locales specified in the enumType (via annotations)typeIsolatedVerify
(Locale locale) Same asverify(Locale)
except that the return type is List. Verify that the keys defined in the enumClass match those found in the resource bundle corresponding to a certain localeVerify that the keys defined in the enumClass match those found in the corresponding resource bundle for all locales declared in the enum type via the@LocaleData
annotation.
-
Method Details
-
getEnumTypeAsStr
String getEnumTypeAsStr()Get the name of enum type to this verifier is related to to.- Returns:
-
verify
Verify that the keys defined in the enumClass match those found in the resource bundle corresponding to a certain locale- Parameters:
locale
-- Returns:
-
verifyAllLocales
List<Cal10nError> verifyAllLocales()Verify that the keys defined in the enumClass match those found in the corresponding resource bundle for all locales declared in the enum type via the@LocaleData
annotation.- Returns:
-
typeIsolatedVerify
Same asverify(Locale)
except that the return type is List. - Parameters:
locale
-- Returns:
-
getLocaleNames
String[] getLocaleNames()Get the locales specified in the enumType (via annotations)- Returns:
-
getBaseName
String getBaseName()Get the base name for the resource bundle family as specified in the enumType (via annotations)- Returns:
-