Examples of GeradorDeDigitoPadrao


Examples of br.com.caelum.stella.boleto.bancos.gerador.GeradorDeDigitoPadrao

  private GeradorDeDigito gerador;

  @Before
  public void setUp() {
    this.gerador = new GeradorDeDigitoPadrao();
  }
View Full Code Here

Examples of br.com.caelum.stella.boleto.bancos.gerador.GeradorDeDigitoPadrao

   * @throws CriacaoBoletoException se código tenha mais de 44 digitos.
   */
  public String comCampoLivre(StringBuilder campoLivre) {
    this.codigoDeBarras.append(campoLivre);
    String trecho = this.codigoDeBarras.toString();
    int digito = new GeradorDeDigitoPadrao().geraDigitoMod11(trecho);
    this.codigoDeBarras.insert(4, digito);
    validaTamahoDoCodigoDeBarrasCompletoGerado();
    return this.codigoDeBarras.toString();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.