From 7d6eccbd43ba703306328e133c43e0760ceead8c Mon Sep 17 00:00:00 2001 From: "David A. Madore" Date: Tue, 13 Apr 2010 15:47:59 +0200 Subject: Handle d:xempty attribute, as proof of concept. --- org/madore/damlengine/TodoAttr.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'org/madore/damlengine/TodoAttr.java') diff --git a/org/madore/damlengine/TodoAttr.java b/org/madore/damlengine/TodoAttr.java index d4d877e..c4e554a 100644 --- a/org/madore/damlengine/TodoAttr.java +++ b/org/madore/damlengine/TodoAttr.java @@ -14,12 +14,13 @@ public class TodoAttr extends TodoItem { { Class[] handlerArgTypes = new Class[]{ TodoAttr.class }; damlHandlers = new HashMap(); - // try { - // ; - // } catch (NoSuchMethodException e) { - // // FIXME: this isn't good... - // throw new Error("this is impossible"); - // } + try { + damlHandlers.put("xempty", + XemptyAttrHandler.class.getMethod("handle", handlerArgTypes)); + } catch (NoSuchMethodException e) { + // FIXME: this isn't good... + throw new Error("this is impossible"); + } } Attr attr; -- cgit v1.2.3