com.sun.xml.fastinfoset.stax.events
Class CommentEvent

java.lang.Object
  extended by com.sun.xml.fastinfoset.stax.events.EventBase
      extended by com.sun.xml.fastinfoset.stax.events.CommentEvent
All Implemented Interfaces:
javax.xml.stream.events.Comment, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants

public class CommentEvent
extends EventBase
implements javax.xml.stream.events.Comment


Field Summary
 
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
 
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
 
Constructor Summary
CommentEvent()
           
CommentEvent(java.lang.String text)
           
 
Method Summary
 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()
           
 
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
 

Constructor Detail

CommentEvent

public CommentEvent()

CommentEvent

public CommentEvent(java.lang.String text)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
String String representation of this event

getText

public java.lang.String getText()
Return the string data of the comment, returns empty string if it does not exist

Specified by:
getText in interface javax.xml.stream.events.Comment

setText

public void setText(java.lang.String text)