|
||||||||||
| 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.Object |
clone()
This will return a clone of this Comment. |
boolean |
equals(java.lang.Object ob)
This tests for equality of this Comment to the supplied
Object. |
java.lang.String |
getSerializedForm()
This will return the Comment in XML format,
usable in an XML document. |
java.lang.String |
getText()
This returns the textual data within the Comment. |
int |
hashCode()
This returns the hash code for this Comment. |
Comment |
setText(java.lang.String text)
This will set the value of the Comment. |
java.lang.String |
toString()
This returns a String representation of the
Comment, suitable for debugging. |
| Methods inherited from class java.lang.Object |
finalize,
getClass,
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 Comment setText(java.lang.String text)
This will set the value of the Comment.
text - String text for comment.Comment - this Comment modified.public final java.lang.String toString()
This returns a String representation of the
Comment, suitable for debugging. If the XML
representation of the Comment is desired,
should be used.
getSerializedForm()
String - information about the
Attributepublic final java.lang.String getSerializedForm()
This will return the Comment in XML format,
usable in an XML document.
String - the serialized form of the
Comment.public final boolean equals(java.lang.Object ob)
This tests for equality of this Comment to the supplied
Object.
ob - Object to compare to.boolean - whether the Comment is
equal to the supplied Object.public final int hashCode()
This returns the hash code for this Comment.
int - hash code.public final java.lang.Object clone()
This will return a clone of this Comment.
Object - clone of this Comment.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||