public class CommentEvent extends EventBase implements javax.xml.stream.events.Comment
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
_text |
_eventType, _location| Constructor and Description |
|---|
CommentEvent() |
CommentEvent(java.lang.String text) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getText()
Return the string data of the comment, returns empty string if it
does not exist
|
void |
setText(java.lang.String text) |
java.lang.String |
toString() |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicodeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicodepublic CommentEvent()
public CommentEvent(java.lang.String text)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getText()
getText in interface javax.xml.stream.events.Commentpublic void setText(java.lang.String text)