|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.bankframe.services.resource.BankFrameResourceSubset
This class provides a standard implementation of BankFrameResource subsets
| Field Summary | |
static char |
SEPARATOR_CHAR
|
| Constructor Summary | |
BankFrameResourceSubset(java.lang.String prefix,
BankFrameResource parent)
Constructor. |
|
| Method Summary | |
java.lang.Object |
get(java.lang.String key)
This method gets a value. |
java.lang.Boolean |
getBoolean(java.lang.String keyName)
This method gets the value of the specified property as a Boolean value. |
java.lang.String |
getDescription(java.lang.String key)
This method gets a textual description for the specified key (or subset) |
java.lang.String |
getDescription(java.lang.String key,
java.util.Locale locale)
This method gets a textual description for the specified key (or subset) localised to the specified locale |
java.lang.Double |
getDouble(java.lang.String keyName)
This method gets the value of the specified property as a Double object. |
java.lang.Integer |
getInteger(java.lang.String keyName)
This method gets the value of the specified property as an Integer object. |
java.lang.Long |
getLong(java.lang.String keyName)
This method gets the value of the specified property as a Long object. |
java.lang.String |
getString(java.lang.String key)
This method gets a value associated with a given key. |
BankFrameResource |
getSubset(java.lang.String prefix)
This method gets a subset of values whose keys all begin with the specified prefix. |
java.util.Enumeration |
keys()
This method gets the names of all the values in this resource bundle. |
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
This method adds or updates a value in the resource bundle. |
void |
remove(java.util.Enumeration keys)
This method removes keys from the resource. |
java.lang.Object |
remove(java.lang.String key)
This method removes a value from the resource bundle. |
void |
removeAll()
This method removes all entries in this subset from the bundle. |
void |
removeSubset(java.lang.String prefix)
This method removes a subset of values from the resource. |
int |
size()
This method returns the number of elements in the resource |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final char SEPARATOR_CHAR
| Constructor Detail |
public BankFrameResourceSubset(java.lang.String prefix,
BankFrameResource parent)
prefix - the prefix that this subset starts withparent - the resource bundle that this subset belongs to| Method Detail |
public java.lang.Object get(java.lang.String key)
get in interface BankFrameResourcekey - the key name of the value to get
public java.lang.String getString(java.lang.String key)
getString in interface BankFrameResourcekey - The key name of the value to get.
public BankFrameResource getSubset(java.lang.String prefix)
getSubset in interface BankFrameResourceprefix - the prefix that the subset starts with
BankFrameResource instance containing the subsetpublic java.util.Enumeration keys()
keys in interface BankFrameResource
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
put in interface BankFrameResourcekey - the name of the valuevalue - the valuepublic java.lang.Object remove(java.lang.String key)
remove in interface BankFrameResourcekey - the name of the key to remove
public void remove(java.util.Enumeration keys)
remove in interface BankFrameResourcekeys - an enumeration of keys to remove.public void removeAll()
removeAll in interface BankFrameResourcepublic void removeSubset(java.lang.String prefix)
removeSubset in interface BankFrameResourceprefix - he prefix that the subset starts withpublic java.lang.Long getLong(java.lang.String keyName)
BankFrameResource
getLong in interface BankFrameResourceBankFrameResource.getLong(String)public java.lang.Integer getInteger(java.lang.String keyName)
BankFrameResource
getInteger in interface BankFrameResourceBankFrameResource.getInteger(String)public java.lang.Boolean getBoolean(java.lang.String keyName)
BankFrameResource
getBoolean in interface BankFrameResourceBankFrameResource.getBoolean(String)public java.lang.Double getDouble(java.lang.String keyName)
BankFrameResource
getDouble in interface BankFrameResourceBankFrameResource.getDouble(String)public int size()
BankFrameResource
size in interface BankFrameResourceExercise caution in calling this method. To determine the number of keys
in this subset, this method must iterate over all keys in the parent set,
finding those that start with the prefix for this set.
public java.lang.String getDescription(java.lang.String key,
java.util.Locale locale)
BankFrameResource
getDescription in interface BankFrameResourceBankFrameResource.getDescription(String, Locale)public java.lang.String getDescription(java.lang.String key)
BankFrameResource
getDescription in interface BankFrameResourceBankFrameResource.getDescription(String)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||