org.jdom
Class CDATA
- Cloneable, Serializable
An XML CDATA section. Represents character-based content within an XML
document that should be output within special CDATA tags. Semantically it's
identical to a simple
Text
object, but output behavior is different.
CDATA makes no guarantees about the underlying textual representation of
character data, but does expose that data as a Java String.
$Revision: 1.30 $, $Date: 2004/02/27 11:32:57 $- Dan Schaffer
- Brett McLaughlin
- Jason Hunter
- Bradley S. Huffman
CDATA() - This is the protected, no-args constructor standard in all JDOM
classes.
|
CDATA(String str) - This constructor creates a new
CDATA node, with the
supplied string value as it's character content.
|
void | append(String str) - This will append character content to whatever content already
exists within this
CDATA node.
|
Text | setText(String str) - This will set the value of this
CDATA node.
|
String | toString() - This returns a
String representation of the
CDATA node, suitable for debugging.
|
CDATA
protected CDATA()
This is the protected, no-args constructor standard in all JDOM
classes. It allows subclassers to get a raw instance with no
initialization.
CDATA
public CDATA(String str)
This constructor creates a new CDATA
node, with the
supplied string value as it's character content.
str
- the node's character content.
append
public void append(String str)
This will append character content to whatever content already
exists within this CDATA
node.
- append in interface Text
str
- character content to append.
setText
public Text setText(String str)
This will set the value of this CDATA
node.
- setText in interface Text
str
- value for node's content.
- the object on which the method was invoked
toString
public String toString()
This returns a String
representation of the
CDATA
node, suitable for debugging. If the XML
representation of the CDATA
node is desired,
either CDATA
or
org.jdom.output.XMLOutputter.output(CDATA, java.io.Writer)
should be used.
- toString in interface Text
String
- information about this node.
Copyright B) 2004 Jason Hunter, Brett McLaughlin. All Rights Reserved.