Exemplo n.º 1
0
  public String getXML() {
    StringBuffer retval = new StringBuffer(200);
    if ((null != from_entry) && (null != to_entry)) {
      retval.append("    <hop>").append(Const.CR);
      retval.append("      ").append(XMLHandler.addTagValue("from", from_entry.getName()));
      retval.append("      ").append(XMLHandler.addTagValue("to", to_entry.getName()));
      retval.append("      ").append(XMLHandler.addTagValue("from_nr", from_entry.getNr()));
      retval.append("      ").append(XMLHandler.addTagValue("to_nr", to_entry.getNr()));
      retval.append("      ").append(XMLHandler.addTagValue("enabled", enabled));
      retval.append("      ").append(XMLHandler.addTagValue("evaluation", evaluation));
      retval.append("      ").append(XMLHandler.addTagValue("unconditional", unconditional));
      retval.append("      ").append(XMLHandler.addTagValue("gui_mid_location_x", guiMidLocationX));
      retval.append("      ").append(XMLHandler.addTagValue("gui_mid_location_y", guiMidLocationY));
      retval.append("    </hop>").append(Const.CR);
    }

    return retval.toString();
  }
Exemplo n.º 2
0
  private JobEntryCopy searchJobEntry(List<JobEntryCopy> entries, String name) {
    for (JobEntryCopy jobEntry : entries)
      if (jobEntry.getName().equalsIgnoreCase(name)) return jobEntry;

    return null;
  }