javax.xml.stream.events.Comment, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstantspublic class CommentEvent extends EventBase implements javax.xml.stream.events.Comment
_eventType, _location| Constructor | Description |
|---|---|
CommentEvent() |
|
CommentEvent(java.lang.String text) |
| Modifier and Type | Method | 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)
Copyright © 2018 Oracle Corporation. All rights reserved.