summaryrefslogtreecommitdiffstats
path: root/org/madore/damlengine/TodoXmlnsAttr.java
blob: 81dafb545b4d4466e745581a2d1f81983f8e493f (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
27
28
package org.madore.damlengine;

import org.w3c.dom.*;

public class TodoXmlnsAttr extends TodoAttr {

    public static class Factory extends TodoAttr.Factory {
	@Override
	public TodoXmlnsAttr newItem(Attr attr, Element owner,
				     Context ctx,
				     TodoItem caller) {
	    return new TodoXmlnsAttr(attr, owner, ctx, caller);
	}
    }

    public TodoXmlnsAttr(Attr attr, Element owner,
			 Context ctx,
			 TodoItem caller) {
	super(attr, owner, ctx, caller);
    }

    @Override
    public void handle() {
	if ( this.attr.getName().equals("xmlns") )
	    this.owner.removeAttributeNode(this.attr);
    }

}