All Packages Class Hierarchy This Package Previous Next Index
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.
CDATA
Default, no-args constructor for implementations to use if needed.
This creates the CDATA with the supplied text.
This will return a clone of this CDATA
.
This tests for equality of this CDATA
to the supplied
Object
.
This will return the CDATA
in XML format,
usable in an XML document.
Deprecated.
This returns the textual data within the
CDATA
.
This returns the hash code for this CDATA
.
This returns a String
representation of the
CDATA
, suitable for debugging.
protected String text
CDATA
protected CDATA()
Default, no-args constructor for implementations to use if needed.
public CDATA(String text)
This creates the CDATA with the supplied text.
String
content of CDATA.
public String getText()
This returns the textual data within the
CDATA
.
String
- text of CDATA.
public String toString()
This returns a String
representation of the
CDATA
, suitable for debugging. If the XML
representation of the CDATA
is desired,
{@link org.jdom.output.XMLOutputter#outputString(CDATA)}
should be used.
String
- information about the
Attribute
public final boolean equals(Object ob)
This tests for equality of this CDATA
to the supplied
Object
.
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 Object clone()
This will return a clone of this CDATA
.
Object
- clone of this CDATA
.
public final String getSerializedForm()
This will return the CDATA
in XML format,
usable in an XML document.
String
- the serialized form of the
CDATA
.
All Packages Class Hierarchy This Package Previous Next Index