OpenCard  
 
OCF, the OpenCard Framework is a standard Java framework for working with Smart Cards.  
 

opencard.tests.terminal
Class CommandCodeFactory

java.lang.Object
  |
  +--opencard.tests.terminal.CommandCodeFactory

public class CommandCodeFactory
extends java.lang.Object

A factory class for creating apropriate CommandCode objects for a specific card. Here, the term factory refers to the design technique, not to OCF card service factories. To add more card types extend this class, add constants to identify the new card type and overwrite the getCodes() - method.

Version:
$Id: CommandCodeFactory.java,v 1.1 1999/12/03 09:31:36 damke Exp $

Field Summary
static int BULL
           
static int IBM_MFC_3_COS
           
static int IBM_MFC_4_COS
           
static int IBM_MFC_421_COS
           
static int IBM_MFC_4F_COS
           
static int ISO_COMPLIANT
           
 
Method Summary
static CommandCodes getCodes(int cardType)
          Returns command codes for the given card os.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

IBM_MFC_3_COS

public static final int IBM_MFC_3_COS

IBM_MFC_4_COS

public static final int IBM_MFC_4_COS

IBM_MFC_4F_COS

public static final int IBM_MFC_4F_COS

IBM_MFC_421_COS

public static final int IBM_MFC_421_COS

BULL

public static final int BULL

ISO_COMPLIANT

public static final int ISO_COMPLIANT
Method Detail

getCodes

public static CommandCodes getCodes(int cardType)
Returns command codes for the given card os.
Parameters:
cos - the CardOS indicator
Returns:
command codes suitable for the given CardOS
See Also:
IBMMFCConstants