org.attoparser.markup.dom
Class Text

Object
  extended by org.attoparser.markup.dom.Node
      extended by org.attoparser.markup.dom.Text
All Implemented Interfaces:
Serializable

public final class Text
extends Node

A Text node in a attoDOM tree.

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

Constructor Summary
Text(String content)
           
Text(String content, int line, int col)
           
 
Method Summary
 String getContent()
           Returns the textual content of this node.
 void setContent(String content)
           
 void visit(AttoDOMVisitor visitor)
           
 
Methods inherited from class org.attoparser.markup.dom.Node
getCol, getLine, getParent, hasParent
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Text

public Text(String content,
            int line,
            int col)

Text

public Text(String content)
Method Detail

getContent

public String getContent()

Returns the textual content of this node.

Returns:
the textual content of this node.

setContent

public void setContent(String content)

visit

public final void visit(AttoDOMVisitor visitor)
                 throws AttoDOMVisitorException
Specified by:
visit in class Node
Throws:
AttoDOMVisitorException


Copyright © 2012 The ATTOPARSER team. All Rights Reserved.