Esempio n. 1
0
  /**
   * Internal method.
   *
   * @param e the element
   */
  protected void handlePriority(XMLElement e) {
    String prio = decode(e.getText()).trim();
    int np;

    try {
      np = Integer.parseInt(prio);
    } catch (NumberFormatException nfe) {
      np = ToDoItem.HIGH_PRIORITY;

      if (TodoTokenTable.STRING_PRIO_HIGH.equalsIgnoreCase(prio)) {
        np = ToDoItem.HIGH_PRIORITY;
      } else if (TodoTokenTable.STRING_PRIO_MED.equalsIgnoreCase(prio)) {
        np = ToDoItem.MED_PRIORITY;
      } else if (TodoTokenTable.STRING_PRIO_LOW.equalsIgnoreCase(prio)) {
        np = ToDoItem.LOW_PRIORITY;
      }
    }

    priority = np;
  }
Esempio n. 2
0
 /**
  * Internal method.
  *
  * @param e the element
  */
 protected void handleOffender(XMLElement e) {
   if (offenders == null) {
     offenders = new ArrayList();
   }
   offenders.add(decode(e.getText()).trim());
 }
Esempio n. 3
0
 /**
  * Internal method.
  *
  * @param e the element
  */
 protected void handlePoster(XMLElement e) {
   critic = decode(e.getText()).trim();
 }
Esempio n. 4
0
 /**
  * Internal method.
  *
  * @param e the element
  */
 protected void handleDescription(XMLElement e) {
   description = decode(e.getText()).trim();
 }
Esempio n. 5
0
 /**
  * Internal method.
  *
  * @param e the element
  */
 protected void handleMoreInfoURL(XMLElement e) {
   moreinfourl = decode(e.getText()).trim();
 }
Esempio n. 6
0
 /**
  * Internal method.
  *
  * @param e the element
  */
 protected void handleHeadline(XMLElement e) {
   headline = decode(e.getText()).trim();
 }