com.sun.xml.stream.events
public class CommentEvent extends DummyEvent implements javax.xml.stream.events.Comment
fLocation
Constructor and Description |
---|
CommentEvent() |
CommentEvent(java.lang.String text) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getText()
Return the string data of the comment, returns empty string if it
does not exist
|
protected void |
init() |
java.lang.String |
toString() |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacterData, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, writeAsEncodedUnicode
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public CommentEvent()
public CommentEvent(java.lang.String text)
protected void init()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getText()
getText
in interface javax.xml.stream.events.Comment
Copyright ? 2002-2003 Apache XML Project. All Rights Reserved.