public class CommentEvent extends EventBase implements javax.xml.stream.events.Comment
_eventType, _locationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
CommentEvent() |
CommentEvent(String text) |
| Modifier and Type | Method and Description |
|---|---|
String |
getText()
Return the string data of the comment, returns empty string if it
does not exist
|
void |
setText(String text) |
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(String text)
public String toString()
public String getText()
getText in interface javax.xml.stream.events.Commentpublic void setText(String text)
Copyright © 2012 Oracle Corpration. All Rights Reserved.