org.jdom
public class CDATA extends Text
Version: $Revision: 1.32 $, $Date: 2007/11/10 05:28:58 $
Constructor Summary | |
---|---|
protected | CDATA()
This is the protected, no-args constructor standard in all JDOM
classes. |
CDATA(String string)
This constructor creates a new CDATA node, with the
supplied string value as it's character content.
|
Method Summary | |
---|---|
void | append(String str)
This will append character content to whatever content already
exists within this CDATA node.
|
void | append(Text text)
This will append the content of another Text node
to this 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
node, with the
supplied string value as it's character content.
Parameters: string the node's character content.
Throws: IllegalDataException if str
contains an
illegal character such as a vertical tab (as determined
by Verifier)
or the CDATA end delimiter ]]>
.
CDATA
node.
Parameters: str character content to append.
Throws: IllegalDataException if str
contains an
illegal character such as a vertical tab (as determined
by Verifier)
or the CDATA end delimiter ]]>
.
Text
node
to this node.
Parameters: text Text node to append.
CDATA
node.
Parameters: str value for node's content.
Returns: the object on which the method was invoked
Throws: IllegalDataException if str
contains an
illegal character such as a vertical tab (as determined
by Verifier)
or the CDATA end delimiter ]]>
.
String
representation of the
CDATA
node, suitable for debugging. If the XML
representation of the CDATA
node is desired,
either CDATA
or
XMLOutputter
should be used.
Returns: String
- information about this node.