com.emv.qrcode.decoder.mpm.MerchantInformationLanguageTemplateDecoder Maven / Gradle / Ivy
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