|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jdom.Comment
Comment
defines behavior for an XML
comment, modeled in Java. Methods
allow the user to obtain the text of the comment.
Field Summary | |
protected java.lang.String |
text
Text of the Comment |
Constructor Summary | |
protected |
Comment()
Default, no-args constructor for implementations to use if needed. |
|
Comment(java.lang.String text)
This creates the comment with the supplied text. |
Method Summary | |
java.lang.String |
getText()
This returns the textual data within the Comment . |
void |
setText(java.lang.String text)
This will set the value of the Comment . |
java.lang.String |
toString()
This returns the textual data within the Comment . |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.String text
Comment
Constructor Detail |
protected Comment()
Default, no-args constructor for implementations to use if needed.
public Comment(java.lang.String text)
This creates the comment with the supplied text.
text
- String
content of comment.Method Detail |
public java.lang.String getText()
This returns the textual data within the
Comment
.
String
- text of comment.public void setText(java.lang.String text)
This will set the value of the Comment
.
text
- String
text for comment.public java.lang.String toString()
This returns the textual data within the
Comment
.
String
- text of comment.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |