diff options
Diffstat (limited to 'org/madore')
-rw-r--r-- | org/madore/damlengine/DamlEngine.java | 8 | ||||
-rw-r--r-- | org/madore/damlengine/TodoItem.java | 18 |
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; + } + +} |