|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jdom.Text | +--org.jdom.CDATA
CDATA
represents character-based content within an
XML document represented by JDOM. It is intended to provide a modular,
printable method of representing CDATA. Additionally,
CDATA
makes no guarantees about the underlying textual
representation of character data, but does expose that data as a Java
String
.
Fields inherited from class org.jdom.Text |
parent, value |
Constructor Summary | |
protected |
CDATA()
This is the protected, no-args constructor standard in all JDOM classes. |
|
CDATA(java.lang.String str)
This constructor creates a new CDATA node, with the
supplied string value as it's character content. |
Method Summary | |
void |
append(java.lang.String str)
This will append character content to whatever content already exists within this CDATA node. |
Text |
setText(java.lang.String str)
This will set the value of this CDATA node. |
java.lang.String |
toString()
This returns a String representation of the
CDATA node, suitable for debugging. |
Methods inherited from class org.jdom.Text |
append, clone, detach, equals, getDocument, getParent, getText, getTextNormalize, getTextTrim, hashCode, normalizeString, setParent |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
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.
public CDATA(java.lang.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.Method Detail |
public Text setText(java.lang.String str)
This will set the value of this CDATA
node.
setText
in class Text
str
- value for node's content.public void append(java.lang.String str)
This will append character content to whatever content already
exists within this CDATA
node.
append
in class Text
str
- character content to append.public java.lang.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
or
Text.getText()
XMLOutputter.output(CDATA, Writer)
should be used.
toString
in class Text
String
- information about this node.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |