info.bioinfweb.jphyloio.events

## Interface LinkedIDEvent

- All Superinterfaces:
    JPhyloIOEvent
  All Known Implementing Classes:
    LinkedLabeledIDEvent, NodeEvent, SetElementEvent

      public interface LinkedIDEvent
      extends JPhyloIOEvent

  Interface to be implemented by event objects that can link previous events by their ID.
  Since:
    0.0.0
  Author:
    Ben Stöver

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.String` | `getLinkedID()` Returns the ID of a data element, linked to the element modeled by this event.
    `boolean` | `hasLink()` Indicates whether this event links another data element.

    - ### Methods inherited from interface info.bioinfweb.jphyloio.events.JPhyloIOEvent

      `asCharacterDefinitionEvent, asCharacterSetIntervalEvent, asCommentEvent, asEdgeEvent, asLabeledIDEvent, asLinkedLabeledIDEvent, asLiteralMetadataContentEvent, asLiteralMetadataEvent, asNodeEvent, asPartEndEvent, asResourceMetadataEvent, asSequenceTokensEvent, asSetElementEvent, asSingleSequenceTokenEvent, asSingleTokenDefinitionEvent, asTokenSetDefinitionEvent, asUnknownCommandEvent, getType`

- - ### Method Detail

    - #### getLinkedID

          java.lang.String getLinkedID()

      Returns the ID of a data element, linked to the element modeled by this event.
      Returns:
        the linked ID or `null` if this object does not have an associated data element

    - #### hasLink

          boolean hasLink()

      Indicates whether this event links another data element.
      Returns:
        `true` if an ID is present, `false` otherwise