Enumeration elements = CSchedule.getAllScheduleElements(); while (elements.hasMoreElements()) { QuantityScheduleElement scheduleElement = (QuantityScheduleElement)elements.nextElement(); s.addElement(new UIQuantityScheduleElement(scheduleElement));
if(CSchedule != null) { Enumeration elements = CSchedule.getAllScheduleElements(); while (elements.hasMoreElements()) { QuantityScheduleElement scheduleElement = (QuantityScheduleElement)elements.nextElement(); s.addElement(new UIQuantityScheduleElement(scheduleElement)); }
  static private Vector scheduleToVector(Schedule CSchedule) {    Vector s = new Vector();    Enumeration elements = CSchedule.getAllScheduleElements();    while (elements.hasMoreElements()) {      QuantityScheduleElement scheduleElement = 	(QuantityScheduleElement)elements.nextElement();      s.addElement(new UIQuantityScheduleElement(scheduleElement));    }    return s;  }