|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.services.devices.MCADeviceProperties
This class provides access to the BankframeDevices.properties file.
Constructor Summary | |
MCADeviceProperties()
Default Constructor |
Method Summary | |
static int |
getInt(java.lang.String prefix,
java.lang.String key)
Get a specific resource setting value. |
static int |
getSerialPortValue(java.lang.String prefix,
java.lang.String key)
Converts a String value in the BankframeDevices.properties
resource file into a javax.comm.SerialPort defined value
using the serialPortValueData static hashtable of SerialPort values. |
static java.lang.String |
getString(java.lang.String prefix,
java.lang.String key)
Get a specific resource setting's value |
static java.util.Hashtable |
getSubSet(java.lang.String prefix)
Get a sub set of the keys in Devices properties, identified by the specified prefix. |
static boolean |
isCommunicationAPIConfigured()
Method isCommunicationAPIConfigured. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MCADeviceProperties()
Method Detail |
public static java.util.Hashtable getSubSet(java.lang.String prefix) throws DeviceException
prefix
- Prefix that identifies the subset of keys to retrieve
DeviceException
- if BankframeDevices.properties cannot be foundpublic static java.lang.String getString(java.lang.String prefix, java.lang.String key) throws DeviceException
prefix
- to strip from properties file entrykey
- The setting to retrieve
DeviceException
- if BankframeDevices.properties cannot be foundpublic static int getInt(java.lang.String prefix, java.lang.String key) throws DeviceException
prefix
- To strip from properties file entry.key
- The setting to retrieve
DeviceException
- if BankframeDevices.properties cannot be found, or
the value cannot be parsed into an integerpublic static int getSerialPortValue(java.lang.String prefix, java.lang.String key) throws DeviceException
BankframeDevices.properties
resource file into a javax.comm.SerialPort
defined value
using the serialPortValueData static hashtable of SerialPort values.
Note: value of a property is the bitwise logic OR of the comma delimited strings in the properties file.
prefix
- To strip from properties file entrykey
- The setting to retrieve
BankframeDevices.properties
resource file.
DeviceException
- if BankframeDevices.properties cannot be foundpublic static boolean isCommunicationAPIConfigured()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |