nl.madline.opendp500
Class JDPFile

java.lang.Object
  |
  +--nl.madline.opendp500.JDPFile
All Implemented Interfaces:
java.lang.Comparable

public class JDPFile
extends java.lang.Object
implements java.lang.Comparable

Author:
svmaris

Constructor Summary
JDPFile(java.lang.String filename, java.lang.String mediaType)
          Default constructor.
 
Method Summary
 int compareTo(java.lang.Object file)
           
 java.lang.String getFilename()
          Get the name of this file
 java.lang.String getMediaType()
          Get the media type of the file
 int getTimesPlayed()
          Get the number of times this file is played
 void setTimesPlayed(int timesPlayed)
          Set the number of times this file is played
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDPFile

public JDPFile(java.lang.String filename,
               java.lang.String mediaType)
Default constructor.

Parameters:
filename - The name of the file
mediaType - The media type of the file (AUDIO/VIDEO/PICTURE)
Method Detail

getTimesPlayed

public int getTimesPlayed()
Get the number of times this file is played

Returns:
timesPlayer The number of times this file is played

setTimesPlayed

public void setTimesPlayed(int timesPlayed)
Set the number of times this file is played

Parameters:
timesPlayed - The number of times this file is played

getFilename

public java.lang.String getFilename()
Get the name of this file

Returns:
filename The name of the file

getMediaType

public java.lang.String getMediaType()
Get the media type of the file

Returns:
mediaType The media type of the file (AUDIO/VIDEO/PICTURE)

compareTo

public int compareTo(java.lang.Object file)
Specified by:
compareTo in interface java.lang.Comparable