com.bankframe.services.devices.MTPinPad
Class PinPadEvent

java.lang.Object
  extended bycom.bankframe.services.devices.MTPinPad.PinPadEvent

public class PinPadEvent
extends java.lang.Object

This class stores IntelliPIN pad events for use by the client class using the device. The client class registers its PinPadListener interface and receives these events.

Author:
etu

Field Summary
static int CARD_TYPE
           
static int DEVICE_SETTING
           
static int EVENT_ACK
           
static int EVENT_EOT
           
static int EVENT_NAK
           
static int EXCEPTION_OCURRED
           
static int PIN_TYPE
           
static int RECEIVED_UNKNOWN_DATA
           
 
Constructor Summary
PinPadEvent(java.lang.String deviceName)
          Constructor
 
Method Summary
 CardData getCardData()
          This method returns the card data, note this method only works for events of type CARD_TYPE
 java.lang.String getDeviceName()
          This method returns the device name
 java.lang.Object getObjectData()
          This method returns the data associated with this event
 int getPIN()
          This method returns the PING number, note this method only works for events of type PIN_TYPE
 int getType()
          This method returns this event's type
 void setDeviceName(java.lang.String deviceName)
          This method sets this event's device name
 void setObjectData(java.lang.Object objectData)
          This method sets the optional data argument
 void setType(int type)
          This method sets this event's type
 java.lang.String toString()
          This method returns a string representation of this event
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CARD_TYPE

public static int CARD_TYPE

PIN_TYPE

public static int PIN_TYPE

EXCEPTION_OCURRED

public static int EXCEPTION_OCURRED

EVENT_EOT

public static int EVENT_EOT

EVENT_ACK

public static int EVENT_ACK

EVENT_NAK

public static int EVENT_NAK

DEVICE_SETTING

public static int DEVICE_SETTING

RECEIVED_UNKNOWN_DATA

public static int RECEIVED_UNKNOWN_DATA
Constructor Detail

PinPadEvent

public PinPadEvent(java.lang.String deviceName)
Constructor

Parameters:
deviceName - The name of the pin pad device
Method Detail

getType

public int getType()
This method returns this event's type

Returns:
One of :
  • CARD_TYPE
  • PIN_TYPE
  • EXCEPTION_OCURRED
  • EVENT_EOT
  • EVENT_ACK
  • EVENT_NAK
  • DEVICE_SETTING
  • RECEIVED_UNKNOWN_DATA

getDeviceName

public java.lang.String getDeviceName()
This method returns the device name

Returns:
The device name

setObjectData

public void setObjectData(java.lang.Object objectData)
This method sets the optional data argument

Parameters:
objectData - The data to associate with this event

getObjectData

public java.lang.Object getObjectData()
This method returns the data associated with this event


setType

public void setType(int type)
This method sets this event's type

Parameters:
type - The type of event

setDeviceName

public void setDeviceName(java.lang.String deviceName)
This method sets this event's device name

Parameters:
deviceName - The new device name

getPIN

public int getPIN()
This method returns the PING number, note this method only works for events of type PIN_TYPE


getCardData

public CardData getCardData()
This method returns the card data, note this method only works for events of type CARD_TYPE

Returns:
CardData instance

toString

public java.lang.String toString()
This method returns a string representation of this event

Returns:
String instance


Copyright © 2004 Siebel Systems, Inc. All rights reserved.