LibreOffice Module xmerge (master) 1
|
Provides a singleton resource class for converter messages. More...
Public Member Functions | |
String | getString (String key) |
This method returns the corresponding String given the key. More... | |
Static Public Member Functions | |
static synchronized Resources | getInstance () |
This method returns the singleton instance of this class. More... | |
Private Member Functions | |
Resources () | |
Default constructor is only accessible within this class. More... | |
Private Attributes | |
final ResourceBundle | rb |
Static Private Attributes | |
static Resources | instance = null |
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.
Definition at line 37 of file Resources.java.
|
inlineprivate |
Default constructor is only accessible within this class.
Load the resource bundle that contains the resource String
values.
Definition at line 61 of file Resources.java.
References org.openoffice.xmerge.util.Resources.rb.
Referenced by org.openoffice.xmerge.util.Resources.getInstance().
|
inlinestatic |
This method returns the singleton instance of this class.
Resources
instance. Definition at line 47 of file Resources.java.
References org.openoffice.xmerge.util.Resources.instance, and org.openoffice.xmerge.util.Resources.Resources().
Referenced by org.openoffice.xmerge.converter.xml.OfficeDocumentException.constructMessage(), and org.openoffice.xmerge.merger.diff.NodeIterator.equivalent().
|
inline |
This method returns the corresponding String
given the key.
key | Key string for getting the message String . |
String
corresponding to the key. Definition at line 71 of file Resources.java.
References org.openoffice.xmerge.util.Resources.rb, and String.
Referenced by org.openoffice.xmerge.converter.xml.OfficeDocumentException.constructMessage(), and org.openoffice.xmerge.merger.diff.NodeIterator.equivalent().
|
staticprivate |
Definition at line 40 of file Resources.java.
Referenced by org.openoffice.xmerge.util.Resources.getInstance().
|
private |
Definition at line 39 of file Resources.java.
Referenced by org.openoffice.xmerge.util.Resources.getString(), and org.openoffice.xmerge.util.Resources.Resources().