public abstract class AbstractMessageKeyVerifier extends Objectimplements 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
|
| Modifier and Type | Method and Description |
|---|---|
protected Set |
buildKeySetFromEnumeration(Enumeration
|
protected String |
extractCharsetForLocale(Locale
|
protected abstract List |
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 |
typeIsolatedVerify(Locale
Same as
IMessageKeyVerifier except that the return type is List.
|
List |
verify(Locale
Verify that the keys defined in the enumClass match those found in the resource bundle corresponding to a certain locale
|
List |
verifyAllLocales()
Verify all declared locales in one step.
|
protected AbstractMessageKeyVerifier(StringenumTypeAsStr, AnnotationExtractor annotationExtractor)
public StringgetEnumTypeAsStr()
IMessageKeyVerifier
getEnumTypeAsStr in interface
IMessageKeyVerifier
public String[] getLocaleNames()
IMessageKeyVerifier
getLocaleNames in interface
IMessageKeyVerifier
public StringgetBaseName()
IMessageKeyVerifier
getBaseName in interface
IMessageKeyVerifier
public List<Cal10nError > verify(Locale locale)
IMessageKeyVerifier
verify in interface
IMessageKeyVerifier
protected abstract CAL10NBundleFindergetResourceBundleFinder()
public List<String > typeIsolatedVerify(Locale locale)
IMessageKeyVerifier
IMessageKeyVerifier.verify(Locale) except that the return type is List
typeIsolatedVerify in interface
IMessageKeyVerifier
protected Set<String > buildKeySetFromEnumeration(Enumeration <String > e)
public List<Cal10nError > verifyAllLocales()
verifyAllLocales in interface
IMessageKeyVerifier