org.jdom
public class Comment extends Content
Version: $Revision: 1.33 $, $Date: 2007/11/10 05:28:58 $
| Field Summary | |
|---|---|
| protected String | text Text of the Comment |
| Constructor Summary | |
|---|---|
| protected | Comment()
Default, no-args constructor for implementations to use if needed. |
| Comment(String text)
This creates the comment with the supplied text.
| |
| Method Summary | |
|---|---|
| String | getText()
This returns the textual data within the Comment.
|
| String | getValue()
Returns the XPath 1.0 string value of this element, which is the
text of this comment.
|
| Comment | setText(String text)
This will set the value of the Comment.
|
| String | toString()
This returns a String representation of the
Comment, suitable for debugging. |
CommentParameters: text String content of comment.
Comment.
Returns: String - text of comment.
Returns: the text of this comment
Comment.
Parameters: text String text for comment.
Returns: Comment - this Comment modified.
Throws: IllegalDataException if the given text is illegal for a Comment.
String representation of the
Comment, suitable for debugging. If the XML
representation of the Comment is desired,
outputString
should be used.
Returns: String - information about the
Attribute