From c18d6e561179a3a96d93a9ae8c6034115ba36923 Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Thu, 15 Apr 2010 23:06:03 +0200 Subject: 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. --- org/madore/damlengine/TodoXemptyAttr.java | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 org/madore/damlengine/TodoXemptyAttr.java (limited to 'org/madore/damlengine/TodoXemptyAttr.java') 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 context, Map options) { + super(attr, owner, context, options); + } + + public void handle() { + this.owner.removeAttribute(this.attr.getName()); + this.owner.appendChild(DamlEngine.doc.createComment(" EMPTY ")); + } + +} -- cgit v1.2.3