/** * 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; }
/** * Internal method. * * @param e the element */ protected void handleOffender(XMLElement e) { if (offenders == null) { offenders = new ArrayList(); } offenders.add(decode(e.getText()).trim()); }
/** * Internal method. * * @param e the element */ protected void handlePoster(XMLElement e) { critic = decode(e.getText()).trim(); }
/** * Internal method. * * @param e the element */ protected void handleDescription(XMLElement e) { description = decode(e.getText()).trim(); }
/** * Internal method. * * @param e the element */ protected void handleMoreInfoURL(XMLElement e) { moreinfourl = decode(e.getText()).trim(); }
/** * Internal method. * * @param e the element */ protected void handleHeadline(XMLElement e) { headline = decode(e.getText()).trim(); }