public enum EventContentType extends java.lang.Enum<EventContentType>
JPhyloIOEvent
. Elements of each content type can either
occur in one version in combination with EventTopologyType.SOLE
or in two versions in
combination with EventTopologyType.START
or EventTopologyType.END
.
The documentation of the single types includes information on which event classes are used with
each type and whether it is separated into a start and end event or not. In addition, the
documentation of JPhyloIOEventReader
contains a full grammar of JPhyloIO event streams.
JPhyloIOEventReader
,
EventTopologyType
,
EventType
Enum Constant and Description |
---|
ALIGNMENT
Indicates the start or the end of the contents of a matrix.
|
CHARACTER_DEFINITION
Indicates a defined character (alignment column).
|
CHARACTER_SET
Indicates the start or end of a sequence of
CHARACTER_SET_INTERVAL events. |
CHARACTER_SET_INTERVAL
Indicates a single interval of a character set.
|
COMMENT
Indicates a comment found in the underlying data source.
|
DOCUMENT
Indicates the start or the end of the read document.
|
EDGE
Indicates an edge in a phylogenetic tree or network.
|
LITERAL_META
Indicates the start or the end of a literal meta information.
|
LITERAL_META_CONTENT
Indicates literal metadata content was found in the underlying data source.
|
NETWORK
Indicates the start or the end of the contents of a phylogenetic network.
|
NODE
Indicates a node in a phylogenetic tree or network.
|
NODE_EDGE_SET
Indicates the start or end of a sequence of
SET_ELEMENT events that define a set of node and edges (including root edges). |
OTU
Indicates the start or the end of an OTU/taxon definition.
|
OTU_LIST
Indicates the start or the end of a list of OTU/taxon definitions.
|
OTU_SET
Indicates the start or end of a sequence of
SET_ELEMENT events that define a set of OTUs. |
RESOURCE_META
Indicates the start or the end of a resource meta information.
|
ROOT_EDGE
Indicates a root edge in a phylogenetic tree.
|
SEQUENCE
Indicates the start or the end of the contents of a sequence in a matrix.
|
SEQUENCE_SET
Indicates the start or end of a sequence of
SET_ELEMENT events that define a set of sequences. |
SEQUENCE_TOKENS
Indicates a number of sequence tokens.
|
SET_ELEMENT
Indicates a member of a set that is linked by its ID.
|
SINGLE_SEQUENCE_TOKEN
Indicates a number a single sequence token.
|
SINGLE_TOKEN_DEFINITION
Indicates the definition of a single sequence token symbol.
|
TOKEN_SET_DEFINITION
Indicates the start or end of a token set definition.
|
TREE
Indicates the start or the end of the contents of a phylogenetic tree.
|
TREE_NETWORK_GROUP
Indicates the start or the end of a sequence of phylogenetic trees and network.
|
TREE_NETWORK_SET
Indicates the start or end of a sequence of
SET_ELEMENT events that define a set of trees
and networks. |
UNKNOWN_COMMAND
Events of this type are used by some readers to provide the application with contents
of unknown commands in a format.
|
Modifier and Type | Method and Description |
---|---|
static EventContentType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EventContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EventContentType DOCUMENT
Both start and end events of this type are instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType RESOURCE_META
Start events of this type are instances of ResourceMetadataEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType LITERAL_META
Start events of this type are instances of LiteralMetadataEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType LITERAL_META_CONTENT
Events of this type are instances of LiteralMetadataContentEvent
and always have the
topology type EventTopologyType.SOLE
and therefore no nested events.
public static final EventContentType UNKNOWN_COMMAND
Events of this type are instances of UnknownCommandEvent
and always have the
topology type EventTopologyType.SOLE
.
public static final EventContentType COMMENT
Events of this type are instances of CommentEvent
and always have the
topology type EventTopologyType.SOLE
and therefore no nested events.
public static final EventContentType OTU_LIST
Start events of this type are instances of LabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType OTU
Start events of this type are instances of LabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType ALIGNMENT
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
. Start events optionally link an OTU list.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType CHARACTER_DEFINITION
Start events of this type are instances of CharacterDefinitionEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType SEQUENCE
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. Start events optionally link a single OTU.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType SEQUENCE_TOKENS
Events of this type are instances of SequenceTokensEvent
and always have the
topology type EventTopologyType.SOLE
.
public static final EventContentType SINGLE_SEQUENCE_TOKEN
Start events of this type are instances of SingleSequenceTokenEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType TREE_NETWORK_GROUP
TREES
block in Nexus or a trees
tag in NeXML.)
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
. Start events optionally link an OTU list that is valid for all
contained trees and networks.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType NETWORK
Start events of this type are instances of LabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType TREE
Start events of this type are instances of LabeledIDEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
In some formats metaevents indicating whether the tree shall be displayed rooted or unrooted may follow the start event of this type.
public static final EventContentType NODE
Start events of this type are instances of NodeEvent
, end events are
instances of ConcreteJPhyloIOEvent
. Start events optionally link a single OTU.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType EDGE
Start events of this type are instances of EdgeEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType ROOT_EDGE
Start events of this type are instances of EdgeEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType TOKEN_SET_DEFINITION
Start events of this type are instances of TokenSetDefinitionEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType SINGLE_TOKEN_DEFINITION
TOKEN_SET_DEFINITION
.
Start events of this type are instances of SingleTokenDefinitionEvent
, end events are
instances of ConcreteJPhyloIOEvent
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType CHARACTER_SET
CHARACTER_SET_INTERVAL
events.
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. The start events link a matrix by their ID using
LinkedLabeledIDEvent.getLinkedID()
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType CHARACTER_SET_INTERVAL
CHARACTER_SET
and TOKEN_SET_DEFINITION
.
Events of this type are instances of CharacterSetIntervalEvent
and always have the
topology type EventTopologyType.SOLE
.
public static final EventContentType SET_ELEMENT
OTU_SET
and TREE_NETWORK_SET
. (Note that character and token sets represent their members in a
different way).
Events of this type are instances of SetElementEvent
and always have the topology type
EventTopologyType.SOLE
.
public static final EventContentType OTU_SET
SET_ELEMENT
events that define a set of OTUs.
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. The start events link an OTU list by their ID using
LinkedLabeledIDEvent.getLinkedID()
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType SEQUENCE_SET
SET_ELEMENT
events that define a set of sequences.
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. The start events link an alignment by their ID using
LinkedLabeledIDEvent.getLinkedID()
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType TREE_NETWORK_SET
SET_ELEMENT
events that define a set of trees
and networks.
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. The start events link a tree/network group by their ID using
LinkedLabeledIDEvent.getLinkedID()
.
This content type will never be combined with EventTopologyType.SOLE
.
public static final EventContentType NODE_EDGE_SET
SET_ELEMENT
events that define a set of node and edges (including root edges).
Start events of this type are instances of LinkedLabeledIDEvent
, end events are
instances of PartEndEvent
. The start events link a tree or network by their ID using
LinkedLabeledIDEvent.getLinkedID()
.
This content type will never be combined with EventTopologyType.SOLE
.
public static EventContentType[] values()
for (EventContentType c : EventContentType.values()) System.out.println(c);
public static EventContentType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null