|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.util.resources.ResourceManager
public class ResourceManager
This class offers convenience methods to decode resource bundle entries
Field Summary | |
---|---|
protected java.util.ResourceBundle |
bundle
The managed resource bundle |
Constructor Summary | |
---|---|
ResourceManager(java.util.ResourceBundle rb)
Creates a new resource manager |
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.String key)
Returns the boolean mapped with the given key |
int |
getCharacter(java.lang.String key)
|
int |
getInteger(java.lang.String key)
Returns the integer mapped with the given string |
java.lang.String |
getString(java.lang.String key)
Returns the string that is mapped with the given key |
java.util.List |
getStringList(java.lang.String key)
Returns the tokens that compose the string mapped with the given key. |
java.util.List |
getStringList(java.lang.String key,
java.lang.String delim)
Returns the tokens that compose the string mapped with the given key. |
java.util.List |
getStringList(java.lang.String key,
java.lang.String delim,
boolean returnDelims)
Returns the tokens that compose the string mapped with the given key |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.ResourceBundle bundle
Constructor Detail |
---|
public ResourceManager(java.util.ResourceBundle rb)
rb
- a resource bundleMethod Detail |
---|
public java.lang.String getString(java.lang.String key) throws java.util.MissingResourceException
key
- a key in the resource bundle
java.util.MissingResourceException
- if key is not the name of a resourcepublic java.util.List getStringList(java.lang.String key) throws java.util.MissingResourceException
key
- a key of the resource bundle
java.util.MissingResourceException
- if key is not the name of a resourcepublic java.util.List getStringList(java.lang.String key, java.lang.String delim) throws java.util.MissingResourceException
key
- a key of the resource bundledelim
- the delimiters of the tokens
java.util.MissingResourceException
- if key is not the name of a resourcepublic java.util.List getStringList(java.lang.String key, java.lang.String delim, boolean returnDelims) throws java.util.MissingResourceException
key
- a key of the resource bundledelim
- the delimiters of the tokensreturnDelims
- if true, the delimiters are returned in the list
java.util.MissingResourceException
- if key is not the name of a resourcepublic boolean getBoolean(java.lang.String key) throws java.util.MissingResourceException, ResourceFormatException
key
- a key of the resource bundle
java.util.MissingResourceException
- if key is not the name of a resource
ResourceFormatException
- if the resource is malformedpublic int getInteger(java.lang.String key) throws java.util.MissingResourceException, ResourceFormatException
key
- a key of the resource bundle
java.util.MissingResourceException
- if key is not the name of a resource
ResourceFormatException
- if the resource is malformedpublic int getCharacter(java.lang.String key) throws java.util.MissingResourceException, ResourceFormatException
java.util.MissingResourceException
ResourceFormatException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |