org.itracker.core.resources
Class ITrackerResourceBundle

java.lang.Object
  extended by java.util.ResourceBundle
      extended by org.itracker.core.resources.ITrackerResourceBundle

public class ITrackerResourceBundle
extends ResourceBundle


Nested Class Summary
static interface ITrackerResourceBundle.DirtyKey
           
 
Nested classes/interfaces inherited from class java.util.ResourceBundle
ResourceBundle.Control
 
Field Summary
 
Fields inherited from class java.util.ResourceBundle
parent
 
Constructor Summary
ITrackerResourceBundle(Locale locale, Object[][] data)
          Deprecated. used still for testing
 
Method Summary
static ResourceBundle getBundle()
           
static ResourceBundle getBundle(Locale locale)
           
 Object[][] getContents()
          Deprecated.  
 Enumeration<String> getKeys()
          Implementation of ResourceBundle.getKeys.
 Locale getLocale()
           
 Object handleGetObject(String key)
          Implementation of ResourceBundle.handleGetObject.
 boolean isDirty(String key)
           
 void removeValue(String key, boolean markDirty)
           
 void setContents(List<Language> content)
          Deprecated. should be private
 void updateValue(Language model)
           
 void updateValue(String key, String value)
           
 
Methods inherited from class java.util.ResourceBundle
clearCache, clearCache, containsKey, getBundle, getBundle, getBundle, getBundle, getBundle, getBundle, getObject, getString, getStringArray, handleKeySet, keySet, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITrackerResourceBundle

public ITrackerResourceBundle(Locale locale,
                              Object[][] data)
Deprecated. used still for testing

Parameters:
locale -
data -
Method Detail

getBundle

public static ResourceBundle getBundle()

getBundle

public static ResourceBundle getBundle(Locale locale)

getContents

public Object[][] getContents()
Deprecated. 

Returns:
should be private or removed

setContents

public void setContents(List<Language> content)
Deprecated. should be private

Parameters:
content -

getLocale

public Locale getLocale()
Overrides:
getLocale in class ResourceBundle

isDirty

public boolean isDirty(String key)

updateValue

public void updateValue(String key,
                        String value)

updateValue

public void updateValue(Language model)

removeValue

public void removeValue(String key,
                        boolean markDirty)

handleGetObject

public final Object handleGetObject(String key)
Implementation of ResourceBundle.handleGetObject. Returns the request key from the internal data map.

Specified by:
handleGetObject in class ResourceBundle

getKeys

public Enumeration<String> getKeys()
Implementation of ResourceBundle.getKeys. Since it returns an enumeration, It creates a new Set, and returns that collections enumerator.

Specified by:
getKeys in class ResourceBundle


Copyright © 2002-2012 itracker. All Rights Reserved.