| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Comment defines behavior for an XML
comment, modeled in Java. Methods
allow the user to obtain the text of the comment.
| Constructor Summary | |
Comment(String text)This creates the comment with the supplied text. | |
| Method Summary | |
Object | clone()This will return a clone of this Comment. |
final boolean | equals(Object ob)This tests for equality of this Comment to the supplied
Object. |
Document | getDocument()This retrieves the owning Document for
this Comment, or null if not a currently a member of a
Document. |
Element | getParent()This will return the parent of this Comment. |
final String | getSerializedForm()This will return the Comment in XML format,
usable in an XML document. |
String | getText()This returns the textual data within the Comment. |
final int | hashCode()This returns the hash code for 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. |
| Constructor Detail |
public Comment(String text)
This creates the comment with the supplied text.
String content of comment.| Method Detail |
public Object clone()
This will return a clone of this Comment.
Object - clone of this Comment.public final boolean equals(Object ob)
This tests for equality of this Comment to the supplied
Object.
Object to compare to.boolean - whether the Comment is
equal to the supplied Object.public Document getDocument()
This retrieves the owning Document for
this Comment, or null if not a currently a member of a
Document.
Document owning this Element, or null.public Element getParent()
This will return the parent of this Comment.
If there is no parent, then this returns null.
Commentpublic final String getSerializedForm()
This will return the Comment in XML format,
usable in an XML document.
String - the serialized form of the
Comment.public String getText()
This returns the textual data within the
Comment.
String - text of comment.public final int hashCode()
This returns the hash code for this Comment.
int - hash code.public Comment setText(String text)
This will set the value of the Comment.
String text for comment.Comment - this Comment modified.public String toString()
This returns a String representation of the
Comment, suitable for debugging. If the XML
representation of the Comment is desired,
getSerializedForm() should be used.
String - information about the
Attribute| Association Links |
Commentto Class org.jdom.Element
to Class org.jdom.Document
| |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||