Class MediaTrack

java.lang.Object
nzilbb.labbcat.model.MediaTrack

public class MediaTrack extends Object
MediaTrack record.
Author:
Robert Fromont robert@fromont.net.nz
  • Constructor Details

    • MediaTrack

      public MediaTrack()
      Default constructor.
    • MediaTrack

      public MediaTrack(javax.json.JsonObject json)
      Constructor from JSON.
      Parameters:
      json - A JSON representation of the object to construct.
  • Method Details

    • getSuffix

      public String getSuffix()
      Getter for suffix: The suffix associated with the media track.
      Returns:
      The suffix associated with the media track.
    • setSuffix

      public MediaTrack setSuffix(String newSuffix)
      Setter for suffix: The suffix associated with the media track.
      Parameters:
      newSuffix - The suffix associated with the media track.
      Returns:
      A reference to this object, so that setters can be chained.
    • getDescription

      public String getDescription()
      Getter for description: Description of the media track.
      Returns:
      Description of the media track.
    • setDescription

      public MediaTrack setDescription(String newDescription)
      Setter for description: Description of the media track.
      Parameters:
      newDescription - Description of the media track.
      Returns:
      A reference to this object, so that setters can be chained.
    • getDisplayOrder

      public int getDisplayOrder()
      Getter for displayOrder: The position of the media track amongst other tracks.
      Returns:
      The position of the media track amongst other tracks.
    • setDisplayOrder

      public MediaTrack setDisplayOrder(int newDisplayOrder)
      Setter for displayOrder: The position of the media track amongst other tracks.
      Parameters:
      newDisplayOrder - The position of the media track amongst other tracks.
      Returns:
      A reference to this object, so that setters can be chained.
    • toJson

      public javax.json.JsonObject toJson()
      Serializes the object to JSON.
      Returns:
      A JSON serialization of the object.