com.sun.xml.fastinfoset.stax.events
Class CommentEvent
java.lang.Object
com.sun.xml.fastinfoset.stax.events.EventBase
com.sun.xml.fastinfoset.stax.events.CommentEvent
- All Implemented Interfaces:
- Comment, XMLEvent, XMLStreamConstants
public class CommentEvent
- extends EventBase
- implements Comment
| 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 |
| 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 interface javax.xml.stream.events.XMLEvent |
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
CommentEvent
public CommentEvent()
CommentEvent
public CommentEvent(String text)
toString
public String toString()
- Overrides:
toString in class Object
- Returns:
- String String representation of this event
getText
public String getText()
- Return the string data of the comment, returns empty string if it
does not exist
- Specified by:
getText in interface Comment
setText
public void setText(String text)
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.