Package nzilbb.labbcat.model
Class MediaTrack
java.lang.Object
nzilbb.labbcat.model.MediaTrack
MediaTrack record.
- Author:
- Robert Fromont robert@fromont.net.nz
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor.MediaTrack
(javax.json.JsonObject json) Constructor from JSON. -
Method Summary
Modifier and TypeMethodDescriptionGetter fordescription
: Description of the media track.int
Getter fordisplayOrder
: The position of the media track amongst other tracks.Getter forsuffix
: The suffix associated with the media track.setDescription
(String newDescription) Setter fordescription
: Description of the media track.setDisplayOrder
(int newDisplayOrder) Setter fordisplayOrder
: The position of the media track amongst other tracks.Setter forsuffix
: The suffix associated with the media track.javax.json.JsonObject
toJson()
Serializes the object to JSON.
-
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
Getter forsuffix
: The suffix associated with the media track.- Returns:
- The suffix associated with the media track.
-
setSuffix
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
Getter fordescription
: Description of the media track.- Returns:
- Description of the media track.
-
setDescription
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
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.
-