summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid A. Madore <david@procyon.(none)>2010-04-12 19:25:14 +0200
committerDavid A. Madore <david@procyon.(none)>2010-04-12 19:25:14 +0200
commitb078ed40a25afd13e420da54c78ad67ad369e88e (patch)
tree3cf7470365ecddad0c4604a5f274ee7422b4f2cb
parent13a1a241cc9f35c80cddcf555ec9deb49b1aa69a (diff)
downloaddamlengine-b078ed40a25afd13e420da54c78ad67ad369e88e.tar.gz
damlengine-b078ed40a25afd13e420da54c78ad67ad369e88e.tar.bz2
damlengine-b078ed40a25afd13e420da54c78ad67ad369e88e.zip
Start writing code for a todo stack.
-rw-r--r--org/madore/damlengine/DamlEngine.java8
-rw-r--r--org/madore/damlengine/TodoItem.java18
2 files changed, 26 insertions, 0 deletions
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<TodoItem> todoStack = new LinkedList<TodoItem>();
+ HashMap<String,Object> options = new HashMap<String,Object>();
+ options.put("isRoot", true);
+ todoStack.add(new TodoItem(doc.getDocumentElement(),
+ new HashMap<String,Object>(),
+ 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<String,Object> context;
+ protected Map<String,Object> options;
+
+ public TodoItem(Node node, Map<String,Object> context, Map<String,Object> options) {
+ this.node = node;
+ this.context = context;
+ this.options = options;
+ }
+
+}