Public Member Functions | |
| Comment (String text) | |
| Element | getParent () |
| Comment | detach () |
| Document | getDocument () |
| String | getText () |
| Comment | setText (String text) |
| String | toString () |
| final boolean | equals (Object ob) |
| final int | hashCode () |
| Object | clone () |
Protected Member Functions | |
| Comment () | |
| Comment | setParent (Element parent) |
| Comment | setDocument (Document document) |
Protected Attributes | |
| String | text |
| Object | parent |
Comment defines behavior for an XML comment, modeled in Java. Methods allow the user to obtain the text of the comment.
| org::jdom::Comment::Comment | ( | ) | [inline, protected] |
Default, no-args constructor for implementations to use if needed.
| org::jdom::Comment::Comment | ( | String | text | ) | [inline] |
This creates the comment with the supplied text.
| text | String content of comment. |
| Element org::jdom::Comment::getParent | ( | ) | [inline] |
| Comment org::jdom::Comment::detach | ( | ) | [inline] |
| Document org::jdom::Comment::getDocument | ( | ) | [inline] |
| String org::jdom::Comment::getText | ( | ) | [inline] |
| Comment org::jdom::Comment::setText | ( | String | text | ) | [inline] |
This will set the value of the Comment.
| text | String text for comment. |
| IllegalDataException | if the given text is illegal for a Comment. |
| String org::jdom::Comment::toString | ( | ) | [inline] |
This returns a String representation of the Comment, suitable for debugging. If the XML representation of the Comment is desired, org.jdom.output.XMLOutputter#outputString(Comment) should be used.
String - information about the Attribute | final boolean org::jdom::Comment::equals | ( | Object | ob | ) | [inline] |
| final int org::jdom::Comment::hashCode | ( | ) | [inline] |
| Object org::jdom::Comment::clone | ( | ) | [inline] |
String org::jdom::Comment::text [protected] |
Object org::jdom::Comment::parent [protected] |
Parent element, document, or null if none
1.5.1