com.fincatto.documentofiscal.nfe310.transformers.NFNotaMotivoDesoneracaoICMSTransformer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nfe Show documentation
Show all versions of nfe Show documentation
Biblioteca de comunicacao de nota fiscal eletronica brasileira
package com.fincatto.documentofiscal.nfe310.transformers;
import com.fincatto.documentofiscal.nfe310.classes.NFNotaMotivoDesoneracaoICMS;
import org.simpleframework.xml.transform.Transform;
public class NFNotaMotivoDesoneracaoICMSTransformer implements Transform {
@Override
public NFNotaMotivoDesoneracaoICMS read(final String codigo) {
return NFNotaMotivoDesoneracaoICMS.valueOfCodigo(codigo);
}
@Override
public String write(final NFNotaMotivoDesoneracaoICMS desoneracaoICMS) {
return desoneracaoICMS.getCodigo();
}
}