|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
DomComment.java | - | 0% | 0% | 0% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.xml.dom3.core; |
|
11 |
|
|
12 |
import org.jbind.xml.dom3.types.IDomComment; |
|
13 |
import org.jbind.xml.dom3.types.IDomDocument; |
|
14 |
import org.jbind.xml.dom3.types.IDomVisitor; |
|
15 |
import org.w3c.dom.Node; |
|
16 |
|
|
17 |
public class DomComment extends DomCharacterData implements IDomComment { |
|
18 |
|
|
19 | 0 |
public DomComment(IDomDocument aDomDocument, String aData) { |
20 | 0 |
super(aDomDocument, aData); |
21 |
} |
|
22 |
|
|
23 | 0 |
protected DomComment(IDomComment aDomComment, boolean aDeep) { |
24 | 0 |
super(aDomComment, aDeep); |
25 |
} |
|
26 |
|
|
27 | 0 |
public String getNodeName() { |
28 | 0 |
return "#comment"; |
29 |
} |
|
30 |
|
|
31 | 0 |
public short getNodeType() { |
32 | 0 |
return COMMENT_NODE; |
33 |
} |
|
34 |
|
|
35 | 0 |
public Node cloneNode(boolean aDeep) { |
36 | 0 |
return new DomComment(this, aDeep); |
37 |
} |
|
38 |
|
|
39 | 0 |
protected void doBeforeAccept(IDomVisitor aDomVisitor) { |
40 | 0 |
aDomVisitor.visitCommentStart(this); |
41 |
} |
|
42 | 0 |
protected void doAfterAccept(IDomVisitor aDomVisitor) { |
43 | 0 |
aDomVisitor.visitCommentEnd(this); |
44 |
} |
|
45 |
} |
|
46 |
|
|