Package org.apache.batik.util
Class Messages
- java.lang.Object
-
- org.apache.batik.util.Messages
-
public class Messages extends java.lang.Object
This class manages the message for the security utilities
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalizableSupport
localizableSupport
The localizable support for the error messages.protected static ResourceManager
resourceManager
The resource manager to decode messages.protected static java.lang.String
RESOURCES
The error messages bundle class name.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Messages()
This class does not need to be instantiated.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
formatMessage(java.lang.String key, java.lang.Object[] args)
ImplementsLocalizable.formatMessage(String,Object[])
.static int
getCharacter(java.lang.String key)
static int
getInteger(java.lang.String key)
static java.util.Locale
getLocale()
ImplementsLocalizable.getLocale()
.static java.lang.String
getString(java.lang.String key)
static void
setLocale(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.MissingResourceException
ImplementsLocalizable.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
-
-