public class ConcreteJPhyloIOEvent extends java.lang.Object implements JPhyloIOEvent
JPhyloIOEvent
s.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 null
public static ConcreteJPhyloIOEvent createEndEvent(EventContentType contentType)
EventTopologyType.END
-contentType
- the content type of the eventjava.lang.NullPointerException
- if contentType
is null
PartEndEvent
public EventType getType()
JPhyloIOEvent
getType
in interface JPhyloIOEvent
public ResourceMetadataEvent asResourceMetadataEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asResourceMetadataEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of ResourceMetadataEvent
public LiteralMetadataEvent asLiteralMetadataEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asLiteralMetadataEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of LiteralMetadataEvent
public LiteralMetadataContentEvent asLiteralMetadataContentEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asLiteralMetadataContentEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of LiteralMetadataContentEvent
public UnknownCommandEvent asUnknownCommandEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asUnknownCommandEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of UnknownCommandEvent
public CommentEvent asCommentEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asCommentEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of CommentEvent
public SetElementEvent asSetElementEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asSetElementEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of SetElementEvent
public PartEndEvent asPartEndEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asPartEndEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of PartEndEvent
public LabeledIDEvent asLabeledIDEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asLabeledIDEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of LabeledIDEvent
public LinkedLabeledIDEvent asLinkedLabeledIDEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asLinkedLabeledIDEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of LinkedLabeledIDEvent
public SingleSequenceTokenEvent asSingleSequenceTokenEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asSingleSequenceTokenEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of SingleSequenceTokenEvent
public SequenceTokensEvent asSequenceTokensEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asSequenceTokensEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of SequenceTokensEvent
public CharacterSetIntervalEvent asCharacterSetIntervalEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asCharacterSetIntervalEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of CharacterSetIntervalEvent
public CharacterDefinitionEvent asCharacterDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asCharacterDefinitionEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of CharacterDefinitionEvent
public TokenSetDefinitionEvent asTokenSetDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asTokenSetDefinitionEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of TokenSetDefinitionEvent
public SingleTokenDefinitionEvent asSingleTokenDefinitionEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asSingleTokenDefinitionEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of SingleTokenDefinitionEvent
public EdgeEvent asEdgeEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asEdgeEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of EdgeEvent
public NodeEvent asNodeEvent() throws java.lang.ClassCastException
JPhyloIOEvent
asNodeEvent
in interface JPhyloIOEvent
java.lang.ClassCastException
- if this event is not an instance of NodeEvent