|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.bankframe.services.resource.BankFrameResourceSubset
public class BankFrameResourceSubset
This class provides a standard implementation of BankFrameResource subsets
| Field Summary | |
|---|---|
static char |
SEPARATOR_CHAR
|
| Constructor Summary | |
|---|---|
BankFrameResourceSubset(String prefix,
BankFrameResource parent)
Constructor. |
|
| Method Summary | |
|---|---|
Object |
get(String key)
This method gets a value. |
Boolean |
getBoolean(String keyName)
This method gets the value of the specified property as a Boolean value. |
String |
getDescription(String key)
This method gets a textual description for the specified key (or subset) |
String |
getDescription(String key,
Locale locale)
This method gets a textual description for the specified key (or subset) localised to the specified locale |
Double |
getDouble(String keyName)
This method gets the value of the specified property as a Double object. |
Integer |
getInteger(String keyName)
This method gets the value of the specified property as an Integer object. |
Long |
getLong(String keyName)
This method gets the value of the specified property as a Long object. |
String |
getString(String key)
This method gets a value associated with a given key. |
BankFrameResource |
getSubset(String prefix)
This method gets a subset of values whose keys all begin with the specified prefix. |
Enumeration |
keys()
This method gets the names of all the values in this resource bundle. |
Object |
put(String key,
Object value)
This method adds or updates a value in the resource bundle. |
void |
remove(Enumeration keys)
This method removes keys from the resource. |
Object |
remove(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(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(String prefix,
BankFrameResource parent)
prefix - the prefix that this subset starts withparent - the resource bundle that this subset belongs to| Method Detail |
|---|
public Object get(String key)
get in interface BankFrameResourcekey - the key name of the value to get
public String getString(String key)
getString in interface BankFrameResourcekey - The key name of the value to get.
public BankFrameResource getSubset(String prefix)
getSubset in interface BankFrameResourceprefix - the prefix that the subset starts with
BankFrameResource instance containing the subsetpublic Enumeration keys()
keys in interface BankFrameResource
public Object put(String key,
Object value)
put in interface BankFrameResourcekey - the name of the valuevalue - the valuepublic Object remove(String key)
remove in interface BankFrameResourcekey - the name of the key to remove
public void remove(Enumeration keys)
remove in interface BankFrameResourcekeys - an enumeration of keys to remove.public void removeAll()
removeAll in interface BankFrameResourcepublic void removeSubset(String prefix)
removeSubset in interface BankFrameResourceprefix - he prefix that the subset starts withpublic Long getLong(String keyName)
BankFrameResource
getLong in interface BankFrameResourcekeyName - The key to be read from the property file
BankFrameResource.getLong(String)public Integer getInteger(String keyName)
BankFrameResource
getInteger in interface BankFrameResourcekeyName - The key to be read from the property file
BankFrameResource.getInteger(String)public Boolean getBoolean(String keyName)
BankFrameResource
getBoolean in interface BankFrameResourcekeyName - The key to be read from the property file
BankFrameResource.getBoolean(String)public Double getDouble(String keyName)
BankFrameResource
getDouble in interface BankFrameResourcekeyName - The key to be read from the property file
BankFrameResource.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 String getDescription(String key,
Locale locale)
BankFrameResource
getDescription in interface BankFrameResourceBankFrameResource.getDescription(String, Locale)public String getDescription(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 | |||||||||