|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bankframe.services.devices.MCADeviceProperties
public class MCADeviceProperties
This class provides access to the BankframeDevices.properties file.
Constructor Summary | |
---|---|
MCADeviceProperties()
Default Constructor |
Method Summary | |
---|---|
static int |
getInt(String prefix,
String key)
Get a specific resource setting value. |
static int |
getSerialPortValue(String prefix,
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 String |
getString(String prefix,
String key)
Get a specific resource setting's value |
static Hashtable |
getSubSet(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 Hashtable getSubSet(String prefix) throws DeviceException
prefix
- Prefix that identifies the subset of keys to retrieve
DeviceException
- if BankframeDevices.properties cannot be foundpublic static String getString(String prefix, 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(String prefix, 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(String prefix, 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 |