public class CommentEvent extends AbstractXMLEvent implements Comment
Comment
event implementation.Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
text
Comment text.
|
location, schemaType
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
Constructor and Description |
---|
CommentEvent(Comment that)
Copy constructor.
|
CommentEvent(java.lang.String text) |
CommentEvent(java.lang.String text,
Location location) |
Modifier and Type | Method and Description |
---|---|
int |
getEventType()
Returns
XMLStreamConstants.COMMENT . |
java.lang.String |
getText() |
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEvent
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
public CommentEvent(java.lang.String text)
public CommentEvent(java.lang.String text, Location location)
public CommentEvent(Comment that)
that
- The comment to copy.public int getEventType()
XMLStreamConstants.COMMENT
.getEventType
in interface XMLEvent