|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.zphinx.spine.Resources
public class Resources
Resources allows access to a collection of language/locale,country,state,account and message information.
This object serves as a means of creating lists and maps of norminal language,country and state information with this information been obtained from com.zphinx.spine.resources.ResourceProperties
Copyright © Zphinx Software Solutions
| Method Summary | |
|---|---|
LabelIntBean |
getAccount(int accountId)
Gets a LabelIntBean containing the Account Type and it's account code. |
ArrayList |
getAccountsList()
Gets the ArrayList of LabelIntBeans which contains references to the account types available in the application |
StringAttributeBean |
getCountry(String countryId)
Gets the StringAttributeBean of the country to use, this represented as CountryName|countryCode |
ArrayList<StringAttributeBean> |
getCountryList()
Gets the list of StringAttributeBeans containing the country names with the associated ids.The id is usually represented in the properties file as country.countryId=countryName. |
static Resources |
getInstance()
Gets the static instance of this object |
LabelIntBean |
getIntBean(int intValue,
ArrayList aList)
Gets a LabelIntBean whose intValue is equal to the given intValue |
StringAttributeBean |
getLocale(String localeId)
Gets a StringAttributeBean containing the Locale and it's locale code. |
ArrayList |
getLocaleList()
Gets the list of locales which are defined in the resource properties file |
LabelIntBean |
getMessage(int messageId)
Gets a LabelIntBean containing the Message Type and it's message code. |
ArrayList |
getMessagesList()
Gets the ArrayList of LabelIntBean which hold references to message types |
static PropertyResourceBundle |
getResourceBundle()
Gets the resource bundle |
StringAttributeBean |
getState(String stateId)
Gets a StringAttributeBean containing the state amd it's state code. |
ArrayList<StringAttributeBean> |
getStateList()
Gets the list of StringAttributeBean containing the state names with the associated ids.The id is usually represented in the properties file as state.stateId=State Name. |
static String |
getString(String key)
Gets the locale sensitive string defined by this key |
ArrayList |
getSubjectsList()
Gets the ArrayList of LabelIntBean which hold references to subject titles |
protected ArrayList<StringAttributeBean> |
sortList(ArrayList aList)
Alphabetically sort the contents of this list |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static String getString(String key)
key - The key to the object been fetched
public static PropertyResourceBundle getResourceBundle()
public StringAttributeBean getCountry(String countryId)
StringAttributeBean of the country to use, this represented as CountryName|countryCode
countryId - The id by which the country is known in the properties file
public StringAttributeBean getState(String stateId)
StringAttributeBean containing the state amd it's state code.
stateId - The key by which the state is known in the properties file
public ArrayList<StringAttributeBean> getCountryList()
StringAttributeBeans containing the country names with the associated ids.The id is usually represented in the properties file as country.countryId=countryName.
The returned StringAttributeBean is of the format countryName|countryId
public static Resources getInstance()
public ArrayList<StringAttributeBean> getStateList()
StringAttributeBean containing the state names with the associated ids.The id is usually represented in the properties file as state.stateId=State Name.
The returned StringAttributeBean is of the format stateName|stateId
protected ArrayList<StringAttributeBean> sortList(ArrayList aList)
aList - The ArrayList of StringAttributeBeans to be sorted alphabetically according to name variable of the bean
public ArrayList getLocaleList()
public StringAttributeBean getLocale(String localeId)
StringAttributeBean containing the Locale and it's locale code.
localeId - The id or language code of this locale
StringAttributeBean representing the Locale in questionpublic ArrayList getAccountsList()
LabelIntBeans which contains references to the account types available in the application
public ArrayList getSubjectsList()
LabelIntBean which hold references to subject titles
public ArrayList getMessagesList()
LabelIntBean which hold references to message types
public LabelIntBean getAccount(int accountId)
LabelIntBean containing the Account Type and it's account code.
accountId - The id or code of this AccountType
LabelIntBean representing the AccountType in questionpublic LabelIntBean getMessage(int messageId)
LabelIntBean containing the Message Type and it's message code.
messageId - The id or code of this MessageType
LabelIntBean representing the MessageType in question
public LabelIntBean getIntBean(int intValue,
ArrayList aList)
LabelIntBean whose intValue is equal to the given intValue
intValue - The intValue used for tthe Search searchaList - The ArrayList to search
LabelIntBean whose intValue is equal to the given intValue
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||