diff options
author | David A. Madore <david@procyon.(none)> | 2010-04-13 15:47:59 +0200 |
---|---|---|
committer | David A. Madore <david@procyon.(none)> | 2010-04-13 15:47:59 +0200 |
commit | 7d6eccbd43ba703306328e133c43e0760ceead8c (patch) | |
tree | e6b95aa757dfbb853f7f3777d3528313472cd46f /org/madore/damlengine/XemptyAttrHandler.java | |
parent | e3b7a9c657a6a5f5a7a8f3c7ee4fdff1aee6410f (diff) | |
download | damlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.tar.gz damlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.tar.bz2 damlengine-7d6eccbd43ba703306328e133c43e0760ceead8c.zip |
Handle d:xempty attribute, as proof of concept.
Diffstat (limited to 'org/madore/damlengine/XemptyAttrHandler.java')
-rw-r--r-- | org/madore/damlengine/XemptyAttrHandler.java | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/org/madore/damlengine/XemptyAttrHandler.java b/org/madore/damlengine/XemptyAttrHandler.java new file mode 100644 index 0000000..3120d26 --- /dev/null +++ b/org/madore/damlengine/XemptyAttrHandler.java @@ -0,0 +1,14 @@ +package org.madore.damlengine; + +import org.w3c.dom.*; + +public class XemptyAttrHandler { + + private XemptyAttrHandler() { } + + public static void handle(TodoAttr that) { + that.owner.removeAttribute(that.attr.getName()); + that.owner.appendChild(DamlEngine.doc.createComment(" EMPTY ")); + } + +} |