summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoXemptyAttr.java
diff options
context:
space:
mode:
authorDavid A. Madore <david@procyon.(none)>2010-04-15 23:06:03 +0200
committerDavid A. Madore <david@procyon.(none)>2010-04-15 23:06:03 +0200
commitc18d6e561179a3a96d93a9ae8c6034115ba36923 (patch)
treed349bbc9f2e53d45e693b15b965812d7b531fe0d /org/madore/damlengine/TodoXemptyAttr.java
parent9176d80ae6dcad88da79714d934b226afe66c1ad (diff)
downloaddamlengine-c18d6e561179a3a96d93a9ae8c6034115ba36923.tar.gz
damlengine-c18d6e561179a3a96d93a9ae8c6034115ba36923.tar.bz2
damlengine-c18d6e561179a3a96d93a9ae8c6034115ba36923.zip
Change dispatching approach: handlers are now part of todoItems.
Instead of dispatching the todo item in function of the DAML node's local name at todo-handling time, the appropriate todo handler subclass is now instantiated in the todo deque by dispatching the creation of the todo item to the appropriate constructor.
Diffstat (limited to 'org/madore/damlengine/TodoXemptyAttr.java')
-rw-r--r--org/madore/damlengine/TodoXemptyAttr.java18
1 files changed, 18 insertions, 0 deletions
diff --git a/org/madore/damlengine/TodoXemptyAttr.java b/org/madore/damlengine/TodoXemptyAttr.java
new file mode 100644
index 0000000..e2cbe61
--- /dev/null
+++ b/org/madore/damlengine/TodoXemptyAttr.java
@@ -0,0 +1,18 @@
+package org.madore.damlengine;
+
+import java.util.Map;
+import org.w3c.dom.*;
+
+public class TodoXemptyAttr extends TodoAttr {
+
+ public TodoXemptyAttr(Attr attr, Element owner,
+ Map<String,Object> context, Map<String,Object> options) {
+ super(attr, owner, context, options);
+ }
+
+ public void handle() {
+ this.owner.removeAttribute(this.attr.getName());
+ this.owner.appendChild(DamlEngine.doc.createComment(" EMPTY "));
+ }
+
+}