| Modifier and Type | Field and Description |
|---|---|
| private static final long | serialVersionUID
JDOM2 Serialization.
|
| protected String | text
Text of the |
| Access | Constructor and Description |
|---|---|
| protected | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Comment | |
| public Comment | detach()
Overrides org. |
| public String | |
| public String | Returns: the text of this commentImplements abstract org. |
| protected Comment | setParent(Parent
new parent element parent)Overrides org. |
| public Comment | |
| public String | Returns: String - information about the
CommentOverrides java. String representation of the
Comment, suitable for debugging.
|
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides org. JDOM2 Serialization. In this case, Comment is simple. | |
| text | back to summary |
|---|---|
| protected String text Text of the | |
| Comment | back to summary |
|---|---|
| protected Comment() Default, no-args constructor for implementations to use if needed. | |
| Comment | back to summary |
|---|---|
| public Comment(String text) This creates the comment with the supplied text.
| |
| clone | back to summary |
|---|---|
| public Comment 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 Comment 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 | |
| getText | back to summary |
|---|---|
| public String getText() This returns the textual data within the
| |
| getValue | back to summary |
|---|---|
| public String getValue() Implements abstract org. Returns the XPath 1.0 string value of this element, which is the text of this comment. | |
| setParent | back to summary |
|---|---|
| protected Comment 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 Comment setText(String text) This will set the value of the
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. This returns a | |