
br.com.objectos.jabuticava.serasa.relato.factoring.ChequeNumeroPojo Maven / Gradle / Ivy
The newest version!
package br.com.objectos.jabuticava.serasa.relato.factoring;
import br.com.objectos.way.io.flat.FlatFileWriter;
import br.com.objectos.way.io.flat.pojo.IntegerOption;
import javax.annotation.Generated;
@Generated({
"br.com.objectos.way.io.flat.FlatRecordPlugin",
"br.com.objectos.way.io.flat.FlatRecordPlugin$ThisPojoPropertyAction",
"br.com.objectos.way.pojo.compiler.PojoCompiler"
})
final class ChequeNumeroPojo extends ChequeNumero {
private static final String filler0 = "0000";
private static final String filler1 = "00";
private static final String filler2 = "0";
private static final String filler3 = " ";
private final int banco;
private final int agencia;
private final int numero;
private final int conta;
public ChequeNumeroPojo(ChequeNumeroBuilderPojo builder) {
super();
banco = builder.___get___banco();
agencia = builder.___get___agencia();
numero = builder.___get___numero();
conta = builder.___get___conta();
}
@Override
public void emit(FlatFileWriter file) {
file.recordWriter()
.integer(banco, 3, IntegerOption.ZEROFILL)
.integer(agencia, 4, IntegerOption.ZEROFILL)
.fixed(filler0)
.integer(numero, 6, IntegerOption.ZEROFILL)
.fixed(filler1)
.integer(conta, 10, IntegerOption.ZEROFILL)
.fixed(filler2)
.fixed(filler3)
.write();
}
@Override
public String toString() {
StringBuilder builder = new StringBuilder();
FlatFileWriter file = new FlatFileWriter(builder);
emit(file);
return builder.toString();
}
@Override
int banco() {
return banco;
}
@Override
int agencia() {
return agencia;
}
@Override
String filler0() {
return filler0;
}
@Override
int numero() {
return numero;
}
@Override
String filler1() {
return filler1;
}
@Override
int conta() {
return conta;
}
@Override
String filler2() {
return filler2;
}
@Override
String filler3() {
return filler3;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy