package org.madore.damlengine; import org.w3c.dom.*; public class TodoXemptyAttr extends TodoAttr { public static class Factory extends TodoAttr.Factory { public TodoXemptyAttr newItem(Attr attr, Element owner, Context ctx, TodoItem.Options options) { return new TodoXemptyAttr(attr, owner, ctx, options); } } public TodoXemptyAttr(Attr attr, Element owner, Context ctx, TodoItem.Options options) { super(attr, owner, ctx, options); } public void handle() { this.owner.removeAttribute(this.attr.getName()); this.owner.appendChild(ctx.doc.createComment(" EMPTY ")); } }