|
JDOM 1.0beta10-dev |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--org.jdom.Content
|
+--org.jdom.Comment
An XML comment. Methods allow the user to get and set the text of the comment.
| Field Summary | |
protected java.lang.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(java.lang.String text)
This creates the comment with the supplied text. |
| Method Summary | |
boolean |
equals(java.lang.Object ob)
This tests for equality of this Comment to the supplied
Object. |
java.lang.String |
getText()
This returns the textual data within the Comment. |
java.lang.String |
getValue()
Returns the XPath 1.0 string value of this element, which is the text of this 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 org.jdom.Content |
clone, detach, getDocument, getParent, setParent |
| 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()
public Comment(java.lang.String text)
text - String content of comment.| Method Detail |
public java.lang.String getValue()
getValue in class Contentpublic java.lang.String getText()
Comment.
String - text of comment.public Comment setText(java.lang.String text)
Comment.
text - String text for comment.
Comment - this Comment modified.
IllegalDataException - if the given text is illegal for a
Comment.public java.lang.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 java.lang.ObjectString - information about the
Attributepublic final boolean equals(java.lang.Object ob)
Comment to the supplied
Object.
equals in class java.lang.Objectob - Object to compare to.
boolean - whether the Comment is
equal to the supplied Object.public final int hashCode()
Comment.
hashCode in class java.lang.Objectint - hash code.
|
JDOM 1.0beta10-dev |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||