| |
|
| java.lang.Object org.jdom.Content org.jdom.Text org.jdom.CDATA
CDATA | public class CDATA extends Text (Code) | | 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.
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:39 $ author: Dan Schaffer author: Brett McLaughlin author: Jason Hunter author: Bradley S. Huffman |
Constructor Summary | |
protected | CDATA() This is the protected, no-args constructor standard in all JDOM
classes. | public | CDATA(String str) This constructor creates a new CDATA node, with the
supplied string value as it's character content. |
Method Summary | |
public void | append(String str) This will append character content to whatever content already
exists within this CDATA node. | public Text | setText(String str) This will set the value of this CDATA node.
Parameters: str - value for node's content. | public String | toString() This returns a String representation of the
CDATA node, suitable for debugging. |
CDATA | protected CDATA()(Code) | | 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)(Code) | | This constructor creates a new CDATA node, with the
supplied string value as it's character content.
Parameters: str - the node's character content. throws: IllegalDataException - if str contains an illegal character such as a vertical tab (as determinedby org.jdom.Verifier.checkCharacterData)or the CDATA end delimiter ]]> . |
append | public void append(String str)(Code) | | This will append character content to whatever content already
exists within this CDATA node.
Parameters: str - character content to append. throws: IllegalDataException - if str contains an illegal character such as a vertical tab (as determinedby org.jdom.Verifier.checkCharacterData)or the CDATA end delimiter ]]> . |
|
|
|