package org.madore.damlengine; import java.util.Vector; import java.util.HashMap; import org.w3c.dom.*; public class DefaultHandler { private DefaultHandler() { } public static void handle(TodoItem that) { System.err.println("handling a "+that.node.getNodeName()+" node"); NodeList children = that.node.getChildNodes(); Node child; Vector toProcess = new Vector(); for ( int i=0 ; (child=children.item(i)) != null ; i++ ) { if ( child.getNodeType() == Node.ELEMENT_NODE ) { TodoItem it = new TodoItem(child, that.context, new HashMap()); toProcess.add(it); } } TodoDeque.registerAtStart(toProcess); } }