Class CardType


  • public class CardType
    extends java.lang.Object
    Type of a card as determined by a cardservice factory. The CardID represents the ATR of a unique card while the CardType represents a classification of cards according to the card classification scheme used by the cardservice factory. In most cases the card service factory will simply use a numeric value to classify a card. Optionally any information describing the card type can be attached using setCardInfo.
    Author:
    Peter Bendel (peter_bendel@de.ibm.com)
    See Also:
    CardID, CardServiceFactory
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static CardType UNSUPPORTED
      Reserved instance of card type to be used for cards that are not supported by a card service factory.
    • Constructor Summary

      Constructors 
      Constructor Description
      CardType()
      Default constructor
      CardType​(int type)
      Constructor from integer.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object getInfo()  
      int getType()
      Accessor for numeric type
      void setInfo​(java.lang.Object cardInfo)
      Attach additional information with the CardType that can be used when instantiating card services.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • UNSUPPORTED

        public static CardType UNSUPPORTED
        Reserved instance of card type to be used for cards that are not supported by a card service factory.
    • Constructor Detail

      • CardType

        public CardType()
        Default constructor
      • CardType

        public CardType​(int type)
        Constructor from integer. Should be used by CardServiceFactory subclasses
    • Method Detail

      • getType

        public int getType()
        Accessor for numeric type
      • setInfo

        public void setInfo​(java.lang.Object cardInfo)
        Attach additional information with the CardType that can be used when instantiating card services.
      • getInfo

        public java.lang.Object getInfo()