antsnest.datastructure
Class DefaultAntCData

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

public class DefaultAntCData
extends DefaultAntNode
implements AntCData

Implementation of AntCData

Author:
Chris Clohosy
See Also:
Serialized Form

Constructor Summary
DefaultAntCData()
          Constructs a new CDATA node
 
Method Summary
 AntNode cloneNode(IDPool idPool)
          Gets a clone of this node
 String getCDATA()
          Gets the CDATA section
 void setCDATA(String cData)
          Sets the CDATA section
 String toString()
          Provides a string representation of this CDATA section
 
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

DefaultAntCData

public DefaultAntCData()
Constructs a new CDATA node

Method Detail

getCDATA

public String getCDATA()
Gets the CDATA section

Specified by:
getCDATA in interface AntCData
Returns:
a String, the CDATA section

setCDATA

public void setCDATA(String cData)
Sets the CDATA section

Specified by:
setCDATA in interface AntCData
Parameters:
cData - the new CDATA section

toString

public String toString()
Provides a string representation of this CDATA section

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