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.
| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
JDOM 2.0.0 Serialization version.
|
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | append(final String
character content to append. str)Overrides org. CDATA node.
|
| public void | append(final Text
Text node to append. text)Overrides org. Text node
to this node.
|
| public CDATA | |
| public CDATA | detach()
Overrides org. |
| protected CDATA | setParent(Parent
new parent element parent)Overrides org. |
| public CDATA | Returns: the object on which the method was invokedvalue for node's content. str)Overrides org. CDATA node.
|
| public String | Returns: String - information about this node.Overrides org. String representation of the
CDATA node, suitable for debugging.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM 2.0.0 Serialization version. CDATA is simple | |
| CDATA | back to summary |
|---|---|
| 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. | |
| CDATA | back to summary |
|---|---|
| public CDATA(final String string) This constructor creates a new
| |
| append | back to summary |
|---|---|
| public void append(final String str) Overrides org. This will append character content to whatever content already
exists within this
| |
| append | back to summary |
|---|---|
| public void append(final Text text) Overrides org. This will append the content of another | |
| clone | back to summary |
|---|---|
| public CDATA clone() Overrides org. Doc from org. Return a deep clone of this instance. Even if this instance has a parent, the returned clone will not. All JDOM core classes are Cloneable, and never throw CloneNotSupportedException. Additionally all Cloneable JDOM classes return the correct type of instance from this method and there is no need to cast the result (co-variant return value). Subclasses of this should still call super.clone() in their clone method.
| |
| detach | back to summary |
|---|---|
| public CDATA detach() Overrides org. Doc from org. Detaches this child from its parent or does nothing if the child has no parent.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| setParent | back to summary |
|---|---|
| protected CDATA setParent(Parent parent) Overrides org. Doc from org. Sets the parent of this Content. The caller is responsible for removing any pre-existing parentage.
This method can be overridden by particular Content subclasses to return
a specific type of Content (co-variant return type). All overriding
subclasses must call | |
| setText | back to summary |
|---|---|
| public CDATA setText(final String str) Overrides org. This will set the value of this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. This returns a | |