Exemplo n.º 1
0
 private void addSettle(String line, Section actualSection) {
   if (actualSection != null) {
     List<String> split = reworkLine(line);
     if (split.size() == 4) {
       List<Settle> settles = actualSection.getSettles();
       SettleImpl s = new SettleImpl();
       s.setAtom(split.get(0));
       s.setFuncType(Integer.parseInt(split.get(1)));
       s.setC1(new BigDecimal(split.get(2)));
       s.setC2(new BigDecimal(split.get(3)));
       settles.add(s);
     } else {
       ch.printErrorln(String.format("some SETTLES values are lost! --> %s", line));
     }
   }
 }