Package nzilbb.labbcat.model
Class MediaTrack
- java.lang.Object
-
- nzilbb.labbcat.model.MediaTrack
-
public class MediaTrack extends Object
MediaTrack record.- Author:
- Robert Fromont robert@fromont.net.nz
-
-
Constructor Summary
Constructors Constructor Description MediaTrack()Default constructor.MediaTrack(javax.json.JsonObject json)Constructor from JSON.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Getter fordescription: Description of the media track.intgetDisplayOrder()Getter fordisplayOrder: The position of the media track amongst other tracks.StringgetSuffix()Getter forsuffix: The suffix associated with the media track.MediaTracksetDescription(String newDescription)Setter fordescription: Description of the media track.MediaTracksetDisplayOrder(int newDisplayOrder)Setter fordisplayOrder: The position of the media track amongst other tracks.MediaTracksetSuffix(String newSuffix)Setter forsuffix: The suffix associated with the media track.javax.json.JsonObjecttoJson()Serializes the object to JSON.
-
-
-
Method Detail
-
getSuffix
public String getSuffix()
Getter forsuffix: The suffix associated with the media track.- Returns:
- The suffix associated with the media track.
-
setSuffix
public MediaTrack setSuffix(String newSuffix)
Setter forsuffix: 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 fordescription: Description of the media track.- Returns:
- Description of the media track.
-
setDescription
public MediaTrack setDescription(String newDescription)
Setter fordescription: 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 fordisplayOrder: 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 fordisplayOrder: 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.
-
-