LibreOffice Module xmerge (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.openoffice.xmerge.util.Resources Class Reference

Provides a singleton resource class for converter messages. More...

Collaboration diagram for org.openoffice.xmerge.util.Resources:

Public Member Functions

String getString (String key)
 This method returns the corresponding. 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

Detailed Description

Provides a singleton resource class for converter messages.

By default, this class will search for a


class file or properties file based on the default locale.

A properties file will be provided.

Note that if the resource bundle object is not loaded, the construction of the singleton object will throw a


, which is a

, thus I opted to not explicitly declare it. If it does throw


, it may be due to a packaging problem.

Definition at line 37 of file

Constructor & Destructor Documentation

org.openoffice.xmerge.util.Resources.Resources ( )

Default constructor is only accessible within this class.

Load the resource bundle that contains the resource


Definition at line 61 of file

Referenced by org.openoffice.xmerge.util.Resources.getInstance().

Member Function Documentation

static synchronized Resources org.openoffice.xmerge.util.Resources.getInstance ( )
String org.openoffice.xmerge.util.Resources.getString ( String  key)

This method returns the corresponding.

given the key.

keyKey string for getting the message .
Message corresponding to the key.

Definition at line 71 of file

References String.

Referenced by org.openoffice.xmerge.converter.xml.OfficeDocumentException.constructMessage(), and org.openoffice.xmerge.merger.diff.NodeIterator.equivalent().

Member Data Documentation

Resources org.openoffice.xmerge.util.Resources.instance = null

Definition at line 40 of file

Referenced by org.openoffice.xmerge.util.Resources.getInstance().

final ResourceBundle org.openoffice.xmerge.util.Resources.rb

Definition at line 39 of file

The documentation for this class was generated from the following file: