public class ConcreteJPhyloIOEvent extends java.lang.Object implements JPhyloIOEvent
JPhyloIOEvents.| Constructor and Description |
|---|
ConcreteJPhyloIOEvent(EventContentType contentType,
EventTopologyType topologyType)
Creates a new instance of this class.
|
| 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.
|
static ConcreteJPhyloIOEvent |
createEndEvent(EventContentType contentType)
Creates a new instance of this class with the topology type
EventTopologyType.END- |
EventType |
getType()
Returns the type of this event.
|
public ConcreteJPhyloIOEvent(EventContentType contentType, EventTopologyType topologyType)
contentType - the content type of the eventtopologyType - the topology type of the eventjava.lang.NullPointerException - if contentType or topologyType are nullpublic static ConcreteJPhyloIOEvent createEndEvent(EventContentType contentType)
EventTopologyType.END-contentType - the content type of the eventjava.lang.NullPointerException - if contentType is nullPartEndEventpublic EventType getType()
JPhyloIOEventgetType in interface JPhyloIOEventpublic ResourceMetadataEvent asResourceMetadataEvent() throws java.lang.ClassCastException
JPhyloIOEventasResourceMetadataEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of ResourceMetadataEventpublic LiteralMetadataEvent asLiteralMetadataEvent() throws java.lang.ClassCastException
JPhyloIOEventasLiteralMetadataEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of LiteralMetadataEventpublic LiteralMetadataContentEvent asLiteralMetadataContentEvent() throws java.lang.ClassCastException
JPhyloIOEventasLiteralMetadataContentEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of LiteralMetadataContentEventpublic UnknownCommandEvent asUnknownCommandEvent() throws java.lang.ClassCastException
JPhyloIOEventasUnknownCommandEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of UnknownCommandEventpublic CommentEvent asCommentEvent() throws java.lang.ClassCastException
JPhyloIOEventasCommentEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of CommentEventpublic SetElementEvent asSetElementEvent() throws java.lang.ClassCastException
JPhyloIOEventasSetElementEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of SetElementEventpublic PartEndEvent asPartEndEvent() throws java.lang.ClassCastException
JPhyloIOEventasPartEndEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of PartEndEventpublic LabeledIDEvent asLabeledIDEvent() throws java.lang.ClassCastException
JPhyloIOEventasLabeledIDEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of LabeledIDEventpublic LinkedLabeledIDEvent asLinkedLabeledIDEvent() throws java.lang.ClassCastException
JPhyloIOEventasLinkedLabeledIDEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of LinkedLabeledIDEventpublic SingleSequenceTokenEvent asSingleSequenceTokenEvent() throws java.lang.ClassCastException
JPhyloIOEventasSingleSequenceTokenEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of SingleSequenceTokenEventpublic SequenceTokensEvent asSequenceTokensEvent() throws java.lang.ClassCastException
JPhyloIOEventasSequenceTokensEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of SequenceTokensEventpublic CharacterSetIntervalEvent asCharacterSetIntervalEvent() throws java.lang.ClassCastException
JPhyloIOEventasCharacterSetIntervalEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of CharacterSetIntervalEventpublic CharacterDefinitionEvent asCharacterDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEventasCharacterDefinitionEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of CharacterDefinitionEventpublic TokenSetDefinitionEvent asTokenSetDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEventasTokenSetDefinitionEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of TokenSetDefinitionEventpublic SingleTokenDefinitionEvent asSingleTokenDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEventasSingleTokenDefinitionEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of SingleTokenDefinitionEventpublic EdgeEvent asEdgeEvent() throws java.lang.ClassCastException
JPhyloIOEventasEdgeEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of EdgeEventpublic NodeEvent asNodeEvent() throws java.lang.ClassCastException
JPhyloIOEventasNodeEvent in interface JPhyloIOEventjava.lang.ClassCastException - if this event is not an instance of NodeEvent