|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.util.Resources
Provides a singleton resource class for converter messages.
By default, this class will search for a
ResourceBundle
class file or properties file based
on the default locale.
A properties file resources.properties will be provided.
Note that if the resource bundle object is not loaded, the
construction of the singleton object will throw a
MissingResourceException
, which is a
RuntimeException
, thus I opted to not explicitly
declare it. If it does throw MissingResourceException
,
it may be due to a packaging problem.
Method Summary | |
static Resources |
getInstance()
This method returns the singleton instance of this class. |
java.lang.String |
getString(java.lang.String key)
This method returns the corresponding String given
the key. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Resources getInstance()
Resources
instance.public java.lang.String getString(java.lang.String key)
String
given
the key.key
- Key string for getting the message
String
.String
corresponding to the key.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |