Top Fields Constructors Methods
com.sun.xml.fastinfoset.stax.events

public Class CommentEvent

extends EventBase
implements Comment
Class Inheritance
All Implemented Interfaces
javax.xml.stream.events.Comment, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
Imports
javax.xml.stream.events.Comment

Field Summary

Modifier and TypeField and Description
private String
Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
_eventType_location

Constructor Summary

AccessConstructor and Description
public
public

Method Summary

Modifier and TypeMethod and Description
public String
getText()

Implements javax.xml.stream.events.Comment.getText.

Return the string data of the comment, returns empty string if it does not exist

public void
public String

Returns:

String String representation of this event
toString
()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from com.sun.xml.fastinfoset.stax.events.EventBase:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypegetSystemIdisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementsetEventTypesetLocationwriteAsEncodedUnicode

Field Detail

_textback to summary
private String _text

Constructor Detail

CommentEventback to summary
public CommentEvent()
CommentEventback to summary
public CommentEvent(String text)

Method Detail

getTextback to summary
public String getText()

Implements javax.xml.stream.events.Comment.getText.

Return the string data of the comment, returns empty string if it does not exist

Annotations
@Override
setTextback to summary
public void setText(String text)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

String String representation of this event