com.bankframe.services.resource
Interface BankFrameResource

All Known Implementing Classes:
BankFrameResourceSubset, BaseBankFrameResource, NoReloadBaseBankFrameResource

public interface BankFrameResource

This interface defines the methods provided by a BankFrameResource.


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.
 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()
          Gets all the keys in the properties file.
 java.lang.Object put(java.lang.String key, java.lang.Object value)
          This method adds a key/value to the resource.
 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.
 void removeAll()
          This method releases all resources used by this instance.
 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
 

Method Detail

get

public java.lang.Object get(java.lang.String key)
This method gets a value.

Parameters:
key - The key for the value to get
Returns:
the value or null if the value is not found

getString

public java.lang.String getString(java.lang.String key)
This method gets a value.

Parameters:
key - The key for the value to get
Returns:
the value or null if the value is not found

getLong

public java.lang.Long getLong(java.lang.String keyName)
This method gets the value of the specified property as a Long object.

Returns:
the value of the specifed property or null if a value does not exist

getInteger

public java.lang.Integer getInteger(java.lang.String keyName)
This method gets the value of the specified property as an Integer object.

Returns:
the value of the specifed property or null if a value does not exist

getDouble

public java.lang.Double getDouble(java.lang.String keyName)
This method gets the value of the specified property as a Double object.

Returns:
the value of the specifed property or null if a value does not exist

getBoolean

public java.lang.Boolean getBoolean(java.lang.String keyName)
This method gets the value of the specified property as a Boolean value. If the value contains 'true' this method will return Boolean.TRUE, or Boolean.FALSE otherwise.

Returns:
the value of the specifed property or null if a value does not exist

getSubset

public BankFrameResource getSubset(java.lang.String prefix)
This method gets a subset of values whose keys all begin with the specified prefix.

Parameters:
prefix - The prefix that the subset starts with
Returns:
a BankFrameResource instance containing the subset

keys

public java.util.Enumeration keys()
Gets all the keys in the properties file.

Returns:
an enumeration of key values.

put

public java.lang.Object put(java.lang.String key,
                            java.lang.Object value)
This method adds a key/value to the resource. If the key already exists in the resource then this key is updated with the new value.

Parameters:
key - the name of the value
value - the value

remove

public java.lang.Object remove(java.lang.String key)
This method removes a value from the resource.

Parameters:
key - the name of the key to remove

remove

public void remove(java.util.Enumeration keys)
This method removes keys from the resource.

Parameters:
keys - an enumeration of the keys to remove

removeAll

public void removeAll()
This method releases all resources used by this instance.


removeSubset

public void removeSubset(java.lang.String prefix)
This method removes a subset of values from the resource.

Parameters:
prefix - the prefix that the subset starts with

size

public int size()
This method returns the number of elements in the resource


getDescription

public java.lang.String getDescription(java.lang.String key)
This method gets a textual description for the specified key (or subset)


getDescription

public 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



Copyright © 2005, 2007, Oracle. All rights reserved.