|
JDOM 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jdom.Content
org.jdom.Comment
public class Comment
An XML comment. Methods allow the user to get and set the text of the comment.
| Field Summary | |
|---|---|
protected String |
text
Text of the Comment |
| Fields inherited from class org.jdom.Content |
|---|
parent |
| 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. |
| Methods inherited from class org.jdom.Content |
|---|
clone, detach, equals, getDocument, getParent, getParentElement, hashCode, setParent |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String text
Comment
| Constructor Detail |
|---|
protected Comment()
public Comment(String text)
text - String content of comment.| Method Detail |
|---|
public String getValue()
getValue in class Contentpublic String getText()
Comment.
String - text of comment.public Comment setText(String text)
Comment.
text - String text for comment.
Comment - this Comment modified.
IllegalDataException - if the given text is illegal for a
Comment.public String toString()
String representation of the
Comment, suitable for debugging. If the XML
representation of the Comment is desired,
XMLOutputter.outputString(Comment)
should be used.
toString in class ObjectString - information about the
Attribute
|
JDOM 1.1.1 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||