|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jdom.CDATA
CDATA
defines behavior for an XML
CDATA section, modeled in Java. Methods
allow the user to obtain the text of the CDATA.
Field Summary | |
protected java.lang.String |
text
Text of the CDATA |
Constructor Summary | |
protected |
CDATA()
Default, no-args constructor for implementations to use if needed. |
|
CDATA(java.lang.String text)
This creates the CDATA with the supplied text. |
Method Summary | |
java.lang.Object |
clone()
This will return a clone of this CDATA . |
boolean |
equals(java.lang.Object ob)
This tests for equality of this CDATA to the supplied
Object . |
java.lang.String |
getSerializedForm()
This will return the CDATA in XML format,
usable in an XML document. |
java.lang.String |
getText()
This returns the textual data within the CDATA . |
int |
hashCode()
This returns the hash code for this CDATA . |
void |
setText(java.lang.String text)
This will set the value of the CDATA . |
java.lang.String |
toString()
This returns a String representation of the
CDATA , suitable for debugging. |
Methods inherited from class java.lang.Object |
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String text
CDATA
Constructor Detail |
protected CDATA()
Default, no-args constructor for implementations to use if needed.
public CDATA(java.lang.String text)
This creates the CDATA with the supplied text.
text
- String
content of CDATA.Method Detail |
public java.lang.String getText()
This returns the textual data within the
CDATA
.
String
- text of CDATA.public void setText(java.lang.String text)
This will set the value of the CDATA
.
text
- String
text for CDATA.CDATA
- this CDATA modified.public final java.lang.String toString()
This returns a String
representation of the
CDATA
, suitable for debugging. If the XML
representation of the CDATA
is desired,
should be used.
getSerializedForm()
String
- information about the
Attribute
public final java.lang.String getSerializedForm()
This will return the CDATA
in XML format,
usable in an XML document.
String
- the serialized form of the
CDATA
.public final boolean equals(java.lang.Object ob)
This tests for equality of this CDATA
to the supplied
Object
.
ob
- Object
to compare to.boolean
- whether the Comment
is
equal to the supplied Object
.public final int hashCode()
This returns the hash code for this CDATA
.
int
- hash code.public final java.lang.Object clone()
This will return a clone of this CDATA
.
Object
- clone of this CDATA
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |