Modifier and Type | Class and Description |
---|---|
protected static class |
Messages.BundleKey
Class to help keep track of the missing resource bundles we've already complained about,
so we don't fill up the standard out log with repetitive stuff.
|
protected static class |
Messages.MessageKey
Class to help keep track of the missing messages we've already complained about,
so we don't fill up the standard out log with repetitive stuff.
|
protected static class |
Messages.ResourceKey
Class to help keep track of the missing resources we've already complained about,
so we don't fill up the standard out log with repetitive stuff.
|
Modifier and Type | Field and Description |
---|---|
protected static Set<Messages.BundleKey> |
bundleSet |
protected static Set<Messages.MessageKey> |
messageSet |
protected static Set<Messages.ResourceKey> |
resourceSet |
Modifier | Constructor and Description |
---|---|
protected |
Messages()
Constructor - do no instantiate
|
Modifier and Type | Method and Description |
---|---|
protected static void |
complainMissingBundle(String errorMessage,
Throwable exception,
String bundleName,
Locale locale) |
protected static void |
complainMissingMessage(String errorMessage,
Throwable exception,
String bundleName,
Locale locale,
String messageKey) |
protected static void |
complainMissingResource(String errorMessage,
Throwable exception,
String pathName,
Locale locale,
String resourceKey) |
static org.apache.velocity.app.VelocityEngine |
createVelocityEngine(Class classInstance)
Create and initialize a velocity engine instance, given a class.
|
static String |
getMessage(Class clazz,
String bundleName,
Locale locale,
String messageKey)
Obtain a message given a resource bundle and message key.
|
static String |
getMessage(ResourceBundle resources,
String bundleName,
Locale locale,
String messageKey)
Obtain a message given a resource bundle and message key.
|
static InputStream |
getResourceAsStream(Class classInstance,
String pathName,
Locale originalLocale,
String resourceKey)
Read a resource as an input stream, given a class, path, locale, and resource key.
|
static ResourceBundle |
getResourceBundle(Class clazz,
String bundleName,
Locale locale)
Obtain a resource bundle given a class, bundle name, and locale.
|
static String |
getString(Class clazz,
String bundleName,
Locale locale,
String messageKey,
Object[] args)
Obtain a string given a class, bundle, locale, message key, and arguments.
|
static String |
getString(ResourceBundle resourceBundle,
String bundleName,
Locale locale,
String messageKey)
Obtain a string given a resource bundle and message key.
|
static String |
getString(ResourceBundle resourceBundle,
String bundleName,
Locale locale,
String messageKey,
Object[] args)
Obtain a string given a resource bundle, message key, and arguments.
|
protected static void |
logError(String errorMessage,
Throwable exception) |
protected static Set<Messages.BundleKey> bundleSet
protected static Set<Messages.MessageKey> messageSet
protected static Set<Messages.ResourceKey> resourceSet
public static org.apache.velocity.app.VelocityEngine createVelocityEngine(Class classInstance) throws ManifoldCFException
ManifoldCFException
public static InputStream getResourceAsStream(Class classInstance, String pathName, Locale originalLocale, String resourceKey) throws ManifoldCFException
ManifoldCFException
public static ResourceBundle getResourceBundle(Class clazz, String bundleName, Locale locale)
public static String getMessage(Class clazz, String bundleName, Locale locale, String messageKey)
public static String getMessage(ResourceBundle resources, String bundleName, Locale locale, String messageKey)
public static String getString(ResourceBundle resourceBundle, String bundleName, Locale locale, String messageKey)
public static String getString(Class clazz, String bundleName, Locale locale, String messageKey, Object[] args)
public static String getString(ResourceBundle resourceBundle, String bundleName, Locale locale, String messageKey, Object[] args)
protected static void complainMissingBundle(String errorMessage, Throwable exception, String bundleName, Locale locale)
protected static void complainMissingMessage(String errorMessage, Throwable exception, String bundleName, Locale locale, String messageKey)
protected static void complainMissingResource(String errorMessage, Throwable exception, String pathName, Locale locale, String resourceKey)