| java.lang.Object org.jdom.Content org.jdom.Comment
Comment | public class Comment extends Content (Code) | | An XML comment. Methods allow the user to get and set the text of the
comment.
version: $Revision: 1.1 $, $Date: 2005/04/27 09:32:38 $ author: Brett McLaughlin author: Jason Hunter |
Constructor Summary | |
protected | Comment() Default, no-args constructor for implementations to use if needed. | public | Comment(String text) This creates the comment with the supplied text. |
Method Summary | |
public String | getText() This returns the textual data within the Comment . | public String | getValue() Returns the XPath 1.0 string value of this element, which is the
text of this comment. | public Comment | setText(String text) This will set the value of the Comment .
Parameters: text - String text for comment. | public String | toString() This returns a String representation of the
Comment , suitable for debugging. |
Comment | protected Comment()(Code) | | Default, no-args constructor for implementations to use if needed.
|
Comment | public Comment(String text)(Code) | | This creates the comment with the supplied text.
Parameters: text - String content of comment. |
getText | public String getText()(Code) | | This returns the textual data within the Comment .
String - text of comment. |
getValue | public String getValue()(Code) | | Returns the XPath 1.0 string value of this element, which is the
text of this comment.
the text of this comment |
setText | public Comment setText(String text)(Code) | | This will set the value of the Comment .
Parameters: text - String text for comment. Comment - this Comment modified. throws: IllegalDataException - if the given text is illegal for aComment. |
|
|