|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bankframe.fe.statemachine.base.apploaders.LocalDataSet
Field Summary | |
static java.util.Locale |
EMPTY_LOCALE
This is the Locale of last resort used by this class. |
Constructor Summary | |
LocalDataSet()
Creates new LocalDataSet |
Method Summary | |
void |
addLocalData(LocalData data)
Adds a new data item. |
LocalData |
getLocalData(java.util.Locale locale)
Returns the best available LocalData for the given Locale. |
java.util.Locale |
getNearestAvailableLocale(java.util.Locale locale)
Returns the nearest available Locale to the given Locale. |
void |
resolveReferences()
Resolves the relationships between the data items in this LocalDataSet. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static java.util.Locale EMPTY_LOCALE
Its value is 'new Locale("", "")'.
Constructor Detail |
public LocalDataSet()
Method Detail |
public void addLocalData(LocalData data) throws java.lang.IllegalStateException
data
-
java.lang.IllegalStateException
- if called after resolveReferences.public LocalData getLocalData(java.util.Locale locale)
locale
-
public java.util.Locale getNearestAvailableLocale(java.util.Locale locale)
This method checks the Locales in the following order:
public void resolveReferences()
This method must be called after the last data item has been added, before
calling getLocalData.
The method ensures each data item knows its parent locale within the
available locales.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |