From b078ed40a25afd13e420da54c78ad67ad369e88e Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Mon, 12 Apr 2010 19:25:14 +0200 Subject: Start writing code for a todo stack. --- org/madore/damlengine/DamlEngine.java | 8 ++++++++ org/madore/damlengine/TodoItem.java | 18 ++++++++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 org/madore/damlengine/TodoItem.java (limited to 'org/madore/damlengine') diff --git a/org/madore/damlengine/DamlEngine.java b/org/madore/damlengine/DamlEngine.java index d8861fa..441e970 100644 --- a/org/madore/damlengine/DamlEngine.java +++ b/org/madore/damlengine/DamlEngine.java @@ -1,5 +1,7 @@ package org.madore.damlengine; +import java.util.LinkedList; +import java.util.HashMap; import java.io.OutputStreamWriter; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; @@ -14,6 +16,12 @@ public final class DamlEngine { private DamlEngine() { } // Forbid instantiation public static void processDocument() { + LinkedList todoStack = new LinkedList(); + HashMap options = new HashMap(); + options.put("isRoot", true); + todoStack.add(new TodoItem(doc.getDocumentElement(), + new HashMap(), + options)); // ... } diff --git a/org/madore/damlengine/TodoItem.java b/org/madore/damlengine/TodoItem.java new file mode 100644 index 0000000..e058ae2 --- /dev/null +++ b/org/madore/damlengine/TodoItem.java @@ -0,0 +1,18 @@ +package org.madore.damlengine; + +import java.util.Map; +import org.w3c.dom.Node; + +public class TodoItem { + + protected Node node; + protected Map context; + protected Map options; + + public TodoItem(Node node, Map context, Map options) { + this.node = node; + this.context = context; + this.options = options; + } + +} -- cgit v1.2.3