예제 #1
0
  /**
   * this method find the start and the end of the search dates pass it to dateparser and process
   *
   * @return
   */
  protected Date[] extractSearchDates() {

    String[] startEnd = new String[2];

    for (Field f : fields) {
      if (f.getName().equals(FIELD_IDENTIFIERS[START_INDEX])) {
        startEnd[0] = f.getContent();
      } else if (f.getName().equals(FIELD_IDENTIFIERS[END_INDEX])) {
        startEnd[1] = f.getContent();
      }
    }

    return DateParser.parseSearchDate(startEnd);
  }