public abstract class AbstractMessageKeyVerifier extends Object implements IMessageKeyVerifier
This class contains the bundle verification logic. Logic for extracting locate and key information should be provided by derived classes.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMessageKeyVerifier(String enumTypeAsStr,
AnnotationExtractor annotationExtractor) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<String> |
buildKeySetFromEnumeration(Enumeration<String> e) |
protected String |
extractCharsetForLocale(Locale locale) |
protected abstract List<String> |
extractKeysInEnum() |
String |
getBaseName()
Get the base name for the resource bundle family as specified in the enumType (via
annotations)
|
String |
getEnumTypeAsStr()
Get the name of enum type to this verifier is related to to.
|
String[] |
getLocaleNames()
Get the locales specified in the enumType (via annotations)
|
protected abstract CAL10NBundleFinder |
getResourceBundleFinder() |
List<String> |
typeIsolatedVerify(Locale locale)
Same as
IMessageKeyVerifier.verify(Locale) except that the return type is
List |
List<Cal10nError> |
verify(Locale locale)
Verify that the keys defined in the enumClass match those found in the
resource bundle corresponding to a certain locale
|
List<Cal10nError> |
verifyAllLocales()
Verify all declared locales in one step.
|
protected AbstractMessageKeyVerifier(String enumTypeAsStr, AnnotationExtractor annotationExtractor)
public String getEnumTypeAsStr()
IMessageKeyVerifiergetEnumTypeAsStr in interface IMessageKeyVerifierpublic String[] getLocaleNames()
IMessageKeyVerifiergetLocaleNames in interface IMessageKeyVerifierpublic String getBaseName()
IMessageKeyVerifiergetBaseName in interface IMessageKeyVerifierpublic List<Cal10nError> verify(Locale locale)
IMessageKeyVerifierverify in interface IMessageKeyVerifierprotected abstract CAL10NBundleFinder getResourceBundleFinder()
public List<String> typeIsolatedVerify(Locale locale)
IMessageKeyVerifierIMessageKeyVerifier.verify(Locale) except that the return type is
ListtypeIsolatedVerify in interface IMessageKeyVerifierprotected Set<String> buildKeySetFromEnumeration(Enumeration<String> e)
public List<Cal10nError> verifyAllLocales()
verifyAllLocales in interface IMessageKeyVerifierCopyright © 2009–2025 QOS.ch. All rights reserved.