November 2002
Intermediate to advanced
1120 pages
21h 2m
English
The org.jdom.Comment class represents an XML comment such as <-- Remember to verify this -->. As you can see from Example 15.15, Comment is a very simple class that contains some string data, the usual getParent() and getDocument() methods, and the customary Java utility methods such as equals() and toString().
package org.jdom; public class Comment implements Serializable, Cloneable { protected String text; protected Object parent; protected Comment(); public Comment(String text); public Element getParent(); protected Comment setParent(Element parent); public Comment detach(); public Document getDocument(); protected Comment setDocument(Document document); public String getText(); public ... |
Read now
Unlock full access