Package org.apache.batik.util
Class Messages
- java.lang.Object
-
- org.apache.batik.util.Messages
-
public class Messages extends java.lang.ObjectThis class manages the message for the security utilities- Version:
- $Id: Messages.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalizableSupportlocalizableSupportThe localizable support for the error messages.protected static ResourceManagerresourceManagerThe resource manager to decode messages.protected static java.lang.StringRESOURCESThe error messages bundle class name.
-
Constructor Summary
Constructors Modifier Constructor Description protectedMessages()This class does not need to be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringformatMessage(java.lang.String key, java.lang.Object[] args)ImplementsLocalizable.formatMessage(String,Object[]).static intgetCharacter(java.lang.String key)static intgetInteger(java.lang.String key)static java.util.LocalegetLocale()ImplementsLocalizable.getLocale().static java.lang.StringgetString(java.lang.String key)static voidsetLocale(java.util.Locale l)ImplementsLocalizable.setLocale(Locale).
-
-
-
Field Detail
-
RESOURCES
protected static final java.lang.String RESOURCES
The error messages bundle class name.- See Also:
- Constant Field Values
-
localizableSupport
protected static LocalizableSupport localizableSupport
The localizable support for the error messages.
-
resourceManager
protected static ResourceManager resourceManager
The resource manager to decode messages.
-
-
Method Detail
-
setLocale
public static void setLocale(java.util.Locale l)
ImplementsLocalizable.setLocale(Locale).
-
getLocale
public static java.util.Locale getLocale()
ImplementsLocalizable.getLocale().
-
formatMessage
public static java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args) throws java.util.MissingResourceExceptionImplementsLocalizable.formatMessage(String,Object[]).- Throws:
java.util.MissingResourceException
-
getString
public static java.lang.String getString(java.lang.String key) throws java.util.MissingResourceException- Throws:
java.util.MissingResourceException
-
getInteger
public static int getInteger(java.lang.String key) throws java.util.MissingResourceException- Throws:
java.util.MissingResourceException
-
getCharacter
public static int getCharacter(java.lang.String key) throws java.util.MissingResourceException- Throws:
java.util.MissingResourceException
-
-