summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoAttr.java
diff options
context:
space:
mode:
authorDavid A. Madore <david@procyon.(none)>2010-04-13 15:47:59 +0200
committerDavid A. Madore <david@procyon.(none)>2010-04-13 15:47:59 +0200
commit7d6eccbd43ba703306328e133c43e0760ceead8c (patch)
treee6b95aa757dfbb853f7f3777d3528313472cd46f /org/madore/damlengine/TodoAttr.java
parente3b7a9c657a6a5f5a7a8f3c7ee4fdff1aee6410f (diff)
downloaddamlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.tar.gz
damlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.tar.bz2
damlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.zip
Handle d:xempty attribute, as proof of concept.
Diffstat (limited to 'org/madore/damlengine/TodoAttr.java')
-rw-r--r--org/madore/damlengine/TodoAttr.java13
1 files changed, 7 insertions, 6 deletions
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<String,Method>();
- // 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;