~ubuntu-branches/ubuntu/raring/apgdiff/raring

« back to all changes in this revision

Viewing changes to src/main/java/cz/startnet/utils/pgdiff/Resources.java

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Berg
  • Date: 2010-10-11 09:08:18 UTC
  • mfrom: (2.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20101011090818-sdw8yfemrnxo328k
Tags: 2.2.2-1
* New upstream version.
* Using changelog included in zipfile, thanks Miroslav for providing this.
* Update manpage.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/**
 
2
 * Copyright 2010 StartNet s.r.o.
 
3
 */
 
4
package cz.startnet.utils.pgdiff;
 
5
 
 
6
import java.util.ResourceBundle;
 
7
 
 
8
/**
 
9
 * Utility class for accessing localized resources.
 
10
 * 
 
11
 * @author fordfrog
 
12
 */
 
13
public class Resources {
 
14
 
 
15
    /**
 
16
     * Resource bundle.
 
17
     */
 
18
    private static final ResourceBundle RESOURCE_BUNDLE =
 
19
            ResourceBundle.getBundle("cz/startnet/utils/pgdiff/Resources");
 
20
 
 
21
    /**
 
22
     * Creates new instance of Resources.
 
23
     */
 
24
    private Resources() {
 
25
    }
 
26
 
 
27
    /**
 
28
     * Returns string from resource bundle based on the key.
 
29
     *
 
30
     * @param key key
 
31
     *
 
32
     * @return string
 
33
     */
 
34
    public static String getString(final String key) {
 
35
        return RESOURCE_BUNDLE.getString(key);
 
36
    }
 
37
}