1 /**
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 package net.sourceforge.pmd.lang.xml.ast;
5
6 import net.sourceforge.pmd.lang.ast.Node;
7 import net.sourceforge.pmd.lang.ast.xpath.AttributeNode;
8
9 /**
10 * This interface represents all XML AST nodes. They are essentially thin
11 * wrappers around the underlying DOM nodes.
12 */
13 public interface XmlNode extends Node, AttributeNode {
14 String BEGIN_LINE = "pmd:beginLine";
15 String BEGIN_COLUMN = "pmd:beginColumn";
16 String END_LINE = "pmd:endLine";
17 String END_COLUMN = "pmd:endColumn";
18
19 /**
20 * Provide access to the underlying DOM node.
21 * @return The DOM node.
22 */
23 org.w3c.dom.Node getNode();
24 }