All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.emv.qrcode.decoder.mpm.MerchantInformationLanguageTemplateDecoder Maven / Gradle / Ivy

There is a newer version: 0.1.2
Show newest version
package com.emv.qrcode.decoder.mpm;

import com.emv.qrcode.core.exception.PresentedModeException;
import com.emv.qrcode.model.mpm.MerchantInformationLanguage;
import com.emv.qrcode.model.mpm.MerchantInformationLanguageTemplate;

// @formatter:off
public final class MerchantInformationLanguageTemplateDecoder extends DecoderMpm {

  public MerchantInformationLanguageTemplateDecoder(final String source) {
    super(source);
  }

  @Override
  protected MerchantInformationLanguageTemplate decode() throws PresentedModeException {
    final MerchantInformationLanguageTemplate result = new MerchantInformationLanguageTemplate();

    while(iterator.hasNext()) {
      final String value = iterator.next();
      result.setValue(DecoderMpm.decode(value, MerchantInformationLanguage.class));
    }

    return result;
  }

}

// @formatter:on




© 2015 - 2024 Weber Informatics LLC | Privacy Policy