summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoXemptyAttr.java
blob: 2a233c45a66412b359d995fc71bd5f2f25e90b33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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,
				      TodoContext context,
				      TodoItem.Options options) {
	    return new TodoXemptyAttr(attr, owner, context, options);
	}
    }

    public TodoXemptyAttr(Attr attr, Element owner,
			  TodoContext context,
			  TodoItem.Options options) {
	super(attr, owner, context, options);
    }

    public void handle() {
	this.owner.removeAttribute(this.attr.getName());
	this.owner.appendChild(context.doc.createComment(" EMPTY "));
    }

}