Ejemplo n.º 1
0
 /**
  * Creates a {@code RecognitionInfo} if the relevant values are set in the instance.
  *
  * @return A {@code ConnectionHandleType} instance, or {@code null} if no values are available.
  */
 @Nullable
 public RecognitionInfo buildRecognitionInfo() {
   if (cardType != null) {
     RecognitionInfo rInfo = new RecognitionInfo();
     rInfo.setCardType(cardType);
     rInfo.setCardIdentifier(cardIdentifier);
     return rInfo;
   } else {
     return null;
   }
 }
Ejemplo n.º 2
0
 public HandlerBuilder setCardIdentifier(RecognitionInfo info) {
   if (info != null) {
     return setCardIdentifier(info.getCardIdentifier());
   } else {
     return this;
   }
 }
Ejemplo n.º 3
0
 public HandlerBuilder setCardType(RecognitionInfo info) {
   if (info != null) {
     return setCardType(info.getCardType());
   } else {
     return this;
   }
 }
Ejemplo n.º 4
0
 public HandlerBuilder setRecognitionInfo(RecognitionInfo info) {
   if (info != null) {
     HandlerBuilder b =
         new HandlerBuilder(
             contextHandle,
             ifdName,
             slotIdx,
             cardApp,
             slotHandle,
             info.getCardType(),
             info.getCardIdentifier(),
             protocolEndpoint,
             sessionId,
             binding);
     return b;
   } else {
     return this;
   }
 }