public class CommentEvent extends AbstractXMLEvent implements javax.xml.stream.events.Comment
Comment event implementation.| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
text
Comment text.
|
location, schemaType| Constructor and Description |
|---|
CommentEvent(javax.xml.stream.events.Comment that)
Copy constructor.
|
CommentEvent(java.lang.String text) |
CommentEvent(java.lang.String text,
javax.xml.stream.Location location) |
| Modifier and Type | Method and Description |
|---|---|
int |
getEventType()
Returns
XMLStreamConstants.COMMENT. |
java.lang.String |
getText() |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode