Пример #1
0
  public SEG createJobSegment(int segnum) {
    SEG seg = null;
    try {
      MsgGen gen = getParentHandler().getMsgGen();
      seg = SEGFactory.getInstance().createSEG(getName(), getName(), null, 0, gen.getSyntax());
      for (Enumeration e = getLowlevelParams().propertyNames(); e.hasMoreElements(); ) {
        String key = (String) e.nextElement();
        String value = getLowlevelParams().getProperty(key);
        seg.propagateValue(
            key, value, SyntaxElement.TRY_TO_CREATE, SyntaxElement.DONT_ALLOW_OVERWRITE);
      }
      seg.propagateValue(
          getName() + ".SegHead.seq",
          Integer.toString(segnum),
          SyntaxElement.DONT_TRY_TO_CREATE,
          SyntaxElement.ALLOW_OVERWRITE);
    } catch (Exception ex) {
      throw new HBCI_Exception("*** the job segment for this task can not be created", ex);
    }

    return seg;
  }
Пример #2
0
 public List<String> getJobResultNames() {
   MsgGen gen = getParentHandler().getMsgGen();
   return gen.getGVResultNames(name);
 }
Пример #3
0
 public List<String> getJobParameterNames() {
   MsgGen gen = getParentHandler().getMsgGen();
   return gen.getGVParameterNames(name);
 }