com.sun.xml.fastinfoset.stax.events
public class CommentEvent extends EventBase implements javax.xml.stream.events.Comment
_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, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public CommentEvent()
public CommentEvent(java.lang.String text)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getText()
getText
in interface javax.xml.stream.events.Comment
public void setText(java.lang.String text)