org.itracker.core.resources
Class ITrackerResources

java.lang.Object
  extended by org.itracker.core.resources.ITrackerResources

public class ITrackerResources
extends Object

Please comment this class here. What is it for?

Author:
ready

Field Summary
static String BASE_LOCALE
           
static String DEFAULT_LOCALE
           
static String DEFINED_LOCALES_KEY
           
static String HEXCHARS
           
static String KEY_BASE_CUSTOMFIELD
           
static String KEY_BASE_CUSTOMFIELD_LABEL
           
static String KEY_BASE_CUSTOMFIELD_OPTION
           
static String KEY_BASE_CUSTOMFIELD_TYPE
           
static String KEY_BASE_ISSUE_RELATION
           
static String KEY_BASE_LOCALE_NAME
           
static String KEY_BASE_PERMISSION
           
static String KEY_BASE_PRIORITY
           
static String KEY_BASE_PRIORITY_LABEL
           
static String KEY_BASE_PRIORITY_SIZE
           
static String KEY_BASE_PROJECT_STATUS
           
static String KEY_BASE_RESOLUTION
           
static String KEY_BASE_SEVERITY
           
static String KEY_BASE_STATUS
           
static String KEY_BASE_USER_STATUS
           
static String KEY_BASE_WORKFLOW_EVENT
           
static String NO_LOCALE
           
static String RESOURCE_BUNDLE_NAME
           
 
Constructor Summary
ITrackerResources()
           
 
Method Summary
static void clearBundle(Locale locale)
          Clears a single cached resource bundle.
static void clearBundles()
          Clears all cached resource bundles.
static void clearKeyFromBundles(String key, boolean markDirty)
          Clears a single key from all cached resource bundles.
static int decodeHex(char ch)
           
static char encodeHex(int value)
           
static String escapeUnicodeString(String str, boolean escapeAll)
           
static ResourceBundle getBundle()
           
static ResourceBundle getBundle(Locale locale)
           
static ResourceBundle getBundle(String locale)
           
static String getCheckForKey(String key)
           
static String getCheckForKey(String key, Locale locale)
           
static String getDefaultLocale()
           
static ResourceBundle getEditBundle(Locale locale)
           
static Locale getLocale()
           
static Locale getLocale(String localeString)
           
static String getLocaleDN(Locale locale, Locale displayLocale)
           
static String getLocaleDN(String locale, Locale displayLocale)
           
static String getLocaleFullDN(Locale locale, Locale displayLocale)
           
static Map<String,String> getLocaleNamesMap(Locale locale, Set<String> languageCodes, Map<String,List<String>> languagesMap)
           
static String getLocaleNativeName(Locale locale)
           
static String getParentLocale(String locale)
           
static String getString(String key)
           
static String getString(String key, Locale locale)
           
static String getString(String key, Locale locale, Object[] options)
           
static String getString(String key, Locale locale, String option)
           
static String getString(String key, Object[] options)
           
static String getString(String key, String locale)
           
static String getString(String key, String locale, Object[] options)
           
static String getString(String key, String locale, String option)
           
static boolean isInitialized()
           
static boolean isLongString(String key)
           
static void putBundle(Locale locale, ResourceBundle bundle)
           
static void setDefaultLocale(String value)
           
static void setInitialized(boolean initialized)
           
static String unescapeUnicodeString(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE_BUNDLE_NAME

public static final String RESOURCE_BUNDLE_NAME
See Also:
Constant Field Values

DEFINED_LOCALES_KEY

public static final String DEFINED_LOCALES_KEY
See Also:
Constant Field Values

DEFAULT_LOCALE

public static final String DEFAULT_LOCALE
See Also:
Constant Field Values

BASE_LOCALE

public static final String BASE_LOCALE
See Also:
Constant Field Values

NO_LOCALE

public static final String NO_LOCALE
See Also:
Constant Field Values

KEY_BASE_CUSTOMFIELD_TYPE

public static final String KEY_BASE_CUSTOMFIELD_TYPE
See Also:
Constant Field Values

KEY_BASE_WORKFLOW_EVENT

public static final String KEY_BASE_WORKFLOW_EVENT
See Also:
Constant Field Values

KEY_BASE_PROJECT_STATUS

public static final String KEY_BASE_PROJECT_STATUS
See Also:
Constant Field Values

KEY_BASE_PERMISSION

public static final String KEY_BASE_PERMISSION
See Also:
Constant Field Values

KEY_BASE_PRIORITY

public static final String KEY_BASE_PRIORITY
See Also:
Constant Field Values

KEY_BASE_PRIORITY_LABEL

public static final String KEY_BASE_PRIORITY_LABEL
See Also:
Constant Field Values

KEY_BASE_PRIORITY_SIZE

public static final String KEY_BASE_PRIORITY_SIZE
See Also:
Constant Field Values

KEY_BASE_RESOLUTION

public static final String KEY_BASE_RESOLUTION
See Also:
Constant Field Values

KEY_BASE_ISSUE_RELATION

public static final String KEY_BASE_ISSUE_RELATION
See Also:
Constant Field Values

KEY_BASE_SEVERITY

public static final String KEY_BASE_SEVERITY
See Also:
Constant Field Values

KEY_BASE_STATUS

public static final String KEY_BASE_STATUS
See Also:
Constant Field Values

KEY_BASE_USER_STATUS

public static final String KEY_BASE_USER_STATUS
See Also:
Constant Field Values

KEY_BASE_CUSTOMFIELD

public static final String KEY_BASE_CUSTOMFIELD
See Also:
Constant Field Values

KEY_BASE_CUSTOMFIELD_OPTION

public static final String KEY_BASE_CUSTOMFIELD_OPTION
See Also:
Constant Field Values

KEY_BASE_CUSTOMFIELD_LABEL

public static final String KEY_BASE_CUSTOMFIELD_LABEL
See Also:
Constant Field Values

KEY_BASE_LOCALE_NAME

public static final String KEY_BASE_LOCALE_NAME
See Also:
Constant Field Values

HEXCHARS

public static final String HEXCHARS
See Also:
Constant Field Values
Constructor Detail

ITrackerResources

public ITrackerResources()
Method Detail

getLocale

public static Locale getLocale()

getLocale

public static Locale getLocale(String localeString)

getDefaultLocale

public static String getDefaultLocale()

setDefaultLocale

public static void setDefaultLocale(String value)

getLocaleDN

public static String getLocaleDN(String locale,
                                 Locale displayLocale)

getLocaleDN

public static String getLocaleDN(Locale locale,
                                 Locale displayLocale)

getLocaleFullDN

public static String getLocaleFullDN(Locale locale,
                                     Locale displayLocale)

getLocaleNativeName

public static String getLocaleNativeName(Locale locale)

getLocaleNamesMap

public static final Map<String,String> getLocaleNamesMap(Locale locale,
                                                         Set<String> languageCodes,
                                                         Map<String,List<String>> languagesMap)

getBundle

public static ResourceBundle getBundle()

getBundle

public static ResourceBundle getBundle(String locale)

getBundle

public static ResourceBundle getBundle(Locale locale)

getEditBundle

public static ResourceBundle getEditBundle(Locale locale)

putBundle

public static void putBundle(Locale locale,
                             ResourceBundle bundle)

clearBundle

public static void clearBundle(Locale locale)
Clears a single cached resource bundle. The next time the bundle is accessed, it will be reloaded and placed into the cache.


clearBundles

public static void clearBundles()
Clears all cached resource bundles. The next time a bundle is accessed, it will be reloaded and placed into the cache.


clearKeyFromBundles

public static void clearKeyFromBundles(String key,
                                       boolean markDirty)
Clears a single key from all cached resource bundles. The key is then marked that it is dirty and should be reloaded on hte next access.


getString

public static String getString(String key)

getString

public static String getString(String key,
                               String locale)

getString

public static String getString(String key,
                               Locale locale)

getString

public static String getString(String key,
                               Object[] options)

getString

public static String getString(String key,
                               String locale,
                               Object[] options)

getString

public static String getString(String key,
                               Locale locale,
                               Object[] options)

getString

public static String getString(String key,
                               String locale,
                               String option)

getString

public static String getString(String key,
                               Locale locale,
                               String option)

getCheckForKey

public static String getCheckForKey(String key)
                             throws MissingResourceException
Throws:
MissingResourceException

getCheckForKey

public static String getCheckForKey(String key,
                                    Locale locale)
                             throws MissingResourceException
Throws:
MissingResourceException

isLongString

public static boolean isLongString(String key)

escapeUnicodeString

public static String escapeUnicodeString(String str,
                                         boolean escapeAll)

unescapeUnicodeString

public static String unescapeUnicodeString(String str)

encodeHex

public static char encodeHex(int value)

decodeHex

public static int decodeHex(char ch)

isInitialized

public static boolean isInitialized()

setInitialized

public static void setInitialized(boolean initialized)

getParentLocale

public static String getParentLocale(String locale)


Copyright © 2002-2012 itracker. All Rights Reserved.