org.attoparser.markup.dom
Class Node

Object
  extended by org.attoparser.markup.dom.Node
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
CDATASection, Comment, DocType, Element, ProcessingInstruction, Text, XmlDeclaration

public abstract class Node
extends Object
implements Serializable

Base abstract class for all nodes in a attoDOM tree.

Since:
1.0
Author:
Daniel Fernández
See Also:
Serialized Form

Constructor Summary
protected Node()
           
protected Node(int line, int col)
           
 
Method Summary
 Integer getCol()
           
 Integer getLine()
           
 Element getParent()
           
 boolean hasParent()
           
abstract  void visit(AttoDOMVisitor visitor)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Node

protected Node(int line,
               int col)

Node

protected Node()
Method Detail

getLine

public Integer getLine()

getCol

public Integer getCol()

hasParent

public final boolean hasParent()

getParent

public final Element getParent()

visit

public abstract void visit(AttoDOMVisitor visitor)
                    throws AttoDOMVisitorException
Throws:
AttoDOMVisitorException


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.