public class LabeledEvent extends ConcreteJPhyloIOEvent
Constructor and Description |
---|
LabeledEvent(EventContentType contentType,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLabel()
A text label associated with the data element represented by this event.
|
boolean |
hasLabel()
Indicates whether the modeled data element carries a label.
|
asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, createEndEvent, getType
public LabeledEvent(EventContentType contentType, java.lang.String label)
public java.lang.String getLabel()
Note that additional annotations of that object may be specified by nested metaevents, even if this event carries no label.
null
, if no label was specified for the modeled objectpublic boolean hasLabel()
true
if the data element carries a label, false
otherwise.