antsnest.datastructure
Class DefaultAntTextNode

java.lang.Object
  extended by antsnest.datastructure.DefaultAntNode
      extended by antsnest.datastructure.DefaultAntTextNode
All Implemented Interfaces:
AntNode, AntNodeText, Serializable

public class DefaultAntTextNode
extends DefaultAntNode
implements AntNodeText

Represents nested text inside an Ant node

Author:
Chris Clohosy
See Also:
Serialized Form

Constructor Summary
DefaultAntTextNode()
          Constructs a new text node
 
Method Summary
 AntNode cloneNode(IDPool idPool)
          Gets a clone of this node
 String getText()
          Gets the text
 void setText(String text)
          Sets the text
 String toString()
          Provides a string representation of this text
 
Methods inherited from class antsnest.datastructure.DefaultAntNode
addAttribute, addAttribute, addNode, addNode, changeAttribute, equals, getAttribute, getAttribute, getAttributeSize, getData, getDescription, getIDPool, getName, getNode, getNodeID, getNodeSize, getNodeText, getParent, getType, getTypeAt, indexOfAttribute, indexOfNode, moveAttribute, moveNode, removeAttribute, removeAttribute, removeNode, removeNode, setData, setDescription, setIDPool, setName, setNodeID, setParent
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface antsnest.datastructure.AntNode
addAttribute, addAttribute, addNode, addNode, changeAttribute, getAttribute, getAttribute, getAttributeSize, getData, getDescription, getIDPool, getName, getNode, getNodeID, getNodeSize, getNodeText, getParent, getType, getTypeAt, indexOfAttribute, indexOfNode, moveAttribute, moveNode, removeAttribute, removeAttribute, removeNode, removeNode, setData, setDescription, setIDPool, setName, setNodeID, setParent
 

Constructor Detail

DefaultAntTextNode

public DefaultAntTextNode()
Constructs a new text node

Method Detail

getText

public String getText()
Gets the text

Specified by:
getText in interface AntNodeText
Returns:
a String, the text

setText

public void setText(String text)
Sets the text

Specified by:
setText in interface AntNodeText
Parameters:
text - the new text

toString

public String toString()
Provides a string representation of this text

Overrides:
toString in class Object
Returns:
a String, the string representation

cloneNode

public AntNode cloneNode(IDPool idPool)
Gets a clone of this node

Specified by:
cloneNode in interface AntNode
Specified by:
cloneNode in class DefaultAntNode
Parameters:
idPool - an ID pool to use
Returns:
an AntNode, the cloned node