public class PartEndEvent extends ConcreteJPhyloIOEvent
Sequences or character set definitions may be split across several sequences of events (each
surrounded by a start and a end event), especially when interleaved formats
are read. isTerminated() determines whether another part of the same
sequence may follow.
(Note that this class differs from ContinuedEvent, which has a property indicating if a single value
is separates among a sequence of identical events. No direct instances from ContinuedEvent can be created.)
| Constructor and Description |
|---|
PartEndEvent(EventContentType contentType,
boolean terminated)
Creates a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isTerminated()
Specifies whether another part of the same sequence or character set definition may follow.
|
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getTypepublic PartEndEvent(EventContentType contentType, boolean terminated)
contentType - the content type of this end event (currently either EventContentType.SEQUENCE
or EventContentType.CHARACTER_SET)terminated - Specifies whether another part of the same sequence may follow.public boolean isTerminated()
Sequences or character set definitions may be split across several sequences of events (each surrounded by a start and a end event), especially when interleaved formats are read.
true if this sequence or character set definition is definitely terminated or
false if another part may (or may not) follow