public class CommentEvent extends ContinuedEvent
Nested comments as they are possible e.g. in the MEGA format do not produce separate events.
Constructor and Description |
---|
CommentEvent(java.lang.String content)
Creates a new instance of this class that is not continued in the next event.
|
CommentEvent(java.lang.String content,
boolean continuedInNextEvent)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Returns the content of the comment.
|
isContinuedInNextEvent
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public CommentEvent(java.lang.String content, boolean continuedInNextEvent)
content
- the content of the represented commentcontinuedInNextEvent
- Specify true
here if this event does not contain the final part of
this comment and more events are ahead or false otherwise
.public CommentEvent(java.lang.String content)
content
- the content of the represented commentpublic java.lang.String getContent()