public class CharacterDefinitionEvent extends LabeledIDEvent
Events of this type are optional and most readers will create them only if a character label or associated metadata is present or if an ID has explicitly been defined in the document that is read.
Note that only the property getIndex()
defines the index of the modeled alignment column. There are not necessarily
events fired for each column, which is why the index cannot be determined by counting the encountered events of this type.
Constructor and Description |
---|
CharacterDefinitionEvent(java.lang.String id,
java.lang.String label,
long index) |
Modifier and Type | Method and Description |
---|---|
long |
getIndex() |
checkID, getID
getLabel, hasLabel
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public CharacterDefinitionEvent(java.lang.String id, java.lang.String label, long index)
public long getIndex()