Class OrthoEvent

All Implemented Interfaces:
IExtendable, OrthoElement

public class OrthoEvent extends AbstractOrthoElement
An event written in-line with orthography. Events can have syntax 'type:data' or just 'data'.
  • Constructor Details

    • OrthoEvent

      public OrthoEvent(String data)
    • OrthoEvent

      public OrthoEvent(String type, String data)
  • Method Details

    • getType

      public String getType()
      Get the type of the event. This is the text before the first ':' in the event text.
      Returns:
      the type of the event. Default is 'action' if not defined
    • getData

      public String getData()
      Event data
      Returns:
      the data for the event
    • text

      public String text()
      Description copied from interface: OrthoElement
      Get string representation of the element.
      Returns:
      the string value of the element
    • toString

      public String toString()
      Overrides:
      toString in class Object