public interface JPhyloIOEvent
JPhyloIOEventReader
.
Events in JPhyloIO are generated by implementations of JPhyloIOEventReader
in an order according
to the grammar specified in the documentation of that class. The type of data that is represented by an event
is determined by its EventContentType
. For some content types a start and an end event exist to allow
the sequential representation of nested information (e.g. the sequences of an alignment) and for others only
one sole event will be generated. This is defined by the EventTopologyType
. Both types can be determined
using getType()
.
Modifier and Type | Method and Description |
---|---|
CharacterDefinitionEvent |
asCharacterDefinitionEvent()
Casts this event to a character definition event.
|
CharacterSetIntervalEvent |
asCharacterSetIntervalEvent()
Casts this event to a character set event.
|
CommentEvent |
asCommentEvent()
Casts this event to a comment event.
|
EdgeEvent |
asEdgeEvent()
Casts this event to a tree or graph edge event.
|
LabeledIDEvent |
asLabeledIDEvent()
Casts this event to a labeled ID event.
|
LinkedLabeledIDEvent |
asLinkedLabeledIDEvent()
Casts this event to a basic OTU event.
|
LiteralMetadataContentEvent |
asLiteralMetadataContentEvent()
Casts this event to a literal content metadata event.
|
LiteralMetadataEvent |
asLiteralMetadataEvent()
Casts this event to a literal metadata event.
|
NodeEvent |
asNodeEvent()
Casts this event to a tree or graph node event.
|
PartEndEvent |
asPartEndEvent()
Casts this event to a part end event.
|
ResourceMetadataEvent |
asResourceMetadataEvent()
Casts this event to a resource metadata event.
|
SequenceTokensEvent |
asSequenceTokensEvent()
Casts this event to a tokens event.
|
SetElementEvent |
asSetElementEvent()
Casts this event to a set element event.
|
SingleSequenceTokenEvent |
asSingleSequenceTokenEvent()
Casts this event to a single token event.
|
SingleTokenDefinitionEvent |
asSingleTokenDefinitionEvent()
Casts this event to a single character state symbol definition event.
|
TokenSetDefinitionEvent |
asTokenSetDefinitionEvent()
Casts this event to a character state set definition event.
|
UnknownCommandEvent |
asUnknownCommandEvent()
Casts this event to an unknown command event.
|
EventType |
getType()
Returns the type of this event.
|
ResourceMetadataEvent asResourceMetadataEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of ResourceMetadataEvent
LiteralMetadataEvent asLiteralMetadataEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of LiteralMetadataEvent
LiteralMetadataContentEvent asLiteralMetadataContentEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of LiteralMetadataContentEvent
UnknownCommandEvent asUnknownCommandEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of UnknownCommandEvent
CommentEvent asCommentEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of CommentEvent
LabeledIDEvent asLabeledIDEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of LabeledIDEvent
SetElementEvent asSetElementEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of SetElementEvent
PartEndEvent asPartEndEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of PartEndEvent
LinkedLabeledIDEvent asLinkedLabeledIDEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of LinkedLabeledIDEvent
SequenceTokensEvent asSequenceTokensEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of SequenceTokensEvent
SingleSequenceTokenEvent asSingleSequenceTokenEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of SingleSequenceTokenEvent
CharacterSetIntervalEvent asCharacterSetIntervalEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of CharacterSetIntervalEvent
CharacterDefinitionEvent asCharacterDefinitionEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of CharacterDefinitionEvent
TokenSetDefinitionEvent asTokenSetDefinitionEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of TokenSetDefinitionEvent
SingleTokenDefinitionEvent asSingleTokenDefinitionEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of SingleTokenDefinitionEvent
EdgeEvent asEdgeEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of EdgeEvent
NodeEvent asNodeEvent() throws java.lang.ClassCastException
java.lang.ClassCastException
- if this event is not an instance of NodeEvent