Ejemplo n.º 1
0
  public ArrayList<String> getURLS() {
    ArrayList<String> urls = new ArrayList<String>();

    for (SearchTuple st : searchtuples) {
      urls.add(st.getImageurl());
    }
    return urls;
  }
Ejemplo n.º 2
0
  public String getResultstring() {
    StringBuilder srb = new StringBuilder();
    System.out.println("num: " + searchtuples.size());
    if (super.getSuccess() == 1) { // success
      for (SearchTuple st : searchtuples) {
        srb.append(st.getImageID() + "\n");
        srb.append(st.getImageurl() + "\n");
        srb.append(st.getRecord_number() + "\n");
        srb.append(st.getFieldID() + "\n");
      }
    } else if (super.getSuccess() == 2) { // failed
      srb.append("FAILED\n");
    } else return null;

    result_string = srb.toString();
    return result_string;
  }