summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/DefaultHandler.java
diff options
context:
space:
mode:
Diffstat (limited to 'org/madore/damlengine/DefaultHandler.java')
-rw-r--r--org/madore/damlengine/DefaultHandler.java36
1 files changed, 1 insertions, 35 deletions
diff --git a/org/madore/damlengine/DefaultHandler.java b/org/madore/damlengine/DefaultHandler.java
index ae23a3b..d22d8f4 100644
--- a/org/madore/damlengine/DefaultHandler.java
+++ b/org/madore/damlengine/DefaultHandler.java
@@ -4,40 +4,6 @@ import java.util.Vector;
import java.util.HashMap;
import org.w3c.dom.*;
-public class DefaultHandler {
-
- private DefaultHandler() { }
-
- public static void handleAttributes(TodoElement that) {
- NamedNodeMap attrs = that.node.getAttributes();
- Node attr;
- Vector<TodoAttr> toProcess = new Vector<TodoAttr>();
- for ( int i=0 ; (attr=attrs.item(i)) != null ; i++ ) {
- TodoAttr it = new TodoAttr((Attr)attr, that.node, that.context,
- new HashMap<String,Object>());
- toProcess.add(it);
- }
- TodoDeque.registerAtStart(toProcess);
- }
-
- public static void handleNodeOnly(TodoElement that) {
- System.err.println("handling a "+that.node.getNodeName()+" element");
- NodeList children = that.node.getChildNodes();
- Node child;
- Vector<TodoElement> toProcess = new Vector<TodoElement>();
- for ( int i=0 ; (child=children.item(i)) != null ; i++ ) {
- if ( child.getNodeType() == Node.ELEMENT_NODE ) {
- TodoElement it = new TodoElement((Element)child, that.context,
- new HashMap<String,Object>());
- toProcess.add(it);
- }
- }
- TodoDeque.registerAtStart(toProcess);
- }
-
- public static void handle(TodoElement that) {
- handleAttributes(that);
- handleNodeOnly(that);
- }
+public class DefaultHandler extends ElementHandler {
}