com.adobe.mediacore.info
Class Track

java.lang.Object
  extended by com.adobe.mediacore.info.Track
Direct Known Subclasses:
AudioTrack, ClosedCaptionsTrack

public abstract class Track
extends Object

Class that defines the track abstraction. An track is defined uniquely by its name.


Constructor Summary
Track(String name, String language, boolean isDefault)
          Constructor method.
 
Method Summary
 String getLanguage()
          Getter method: provides the language of the track.
 String getName()
          Getter method: provides the name of the track.
 boolean isDefault()
          Getter method: indicates whether the track is the default track.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Track

public Track(String name,
             String language,
             boolean isDefault)
Constructor method. All track properties are read-only values. They can only be set at construction time.

Parameters:
name - the name of the track
language - the language of the track
isDefault - boolean that marks whether the track is the default one
Method Detail

getName

public String getName()
Getter method: provides the name of the track.

Returns:
the name of the track

getLanguage

public String getLanguage()
Getter method: provides the language of the track.

Returns:
the language of the track

isDefault

public boolean isDefault()
Getter method: indicates whether the track is the default track.

Returns:
true if the track is the default one, false otherwise.