Logo Search packages:      
Sourcecode: pcalendar version File versions  Download package

void net::sf::linuxorg::pcal::engine::Engine::loadFromFileDates ( final Document  doc ) throws SAXException [inline, private]

loadFromFile helper

Parameters:
doc
Exceptions:
SAXException

Definition at line 639 of file Engine.java.

References dateTypes.

Referenced by loadFromFile().

                                                                             {
            for(Integer typeID: dateTypeToTagMap.keySet()) {
                  NodeList nl;
                  String text;
                  Date date;
                  nl = doc.getElementsByTagName(dateTypeToTagMap.get(typeID));
                  for(int i = 0; i<nl.getLength();i++) {
                        text = nl.item(i).getTextContent();
                        if(text == null) {
                              throw new SAXException(Messages.getString("Engine.1")); //$NON-NLS-1$
                        }
                        try {
                              date = DATE_FORMAT.parse(text);
                        } catch (ParseException e) {
                              throw new SAXException(Messages.getString("Engine.2")+text); //$NON-NLS-1$
                        }
                        startDates.add(date);
                        dateTypes.put(date, typeID);
                  }
            }
      }

Here is the caller graph for this function:


Generated by  Doxygen 1.6.0   Back to index