APIdia Launch Partner
Top Description Methods
javax.xml.stream.events

public Interface Comment

extends XMLEvent
Known Direct Implementers
com.sun.xml.internal.stream.events.CommentEvent

An interface for comment events
Author
Copyright (c) 2009 by Oracle Corporation. All Rights Reserved.
Since
1.6
Version
1.0

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the string data of the comment
getText
()

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

Inherited from javax.xml.stream.events.XMLEvent:
asCharactersasEndElementasStartElementgetEventTypegetLocationgetSchemaTypeisAttributeisCharactersisEndDocumentisEndElementisEntityReferenceisNamespaceisProcessingInstructionisStartDocumentisStartElementwriteAsEncodedUnicode

Method Detail

getTextback to summary
public String getText()

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

Returns:String

the string data of the comment