base
Class DVDInfo

java.lang.Object
  extended by base.MediaInfo
      extended by base.DVDInfo

public class DVDInfo
extends MediaInfo

This is a storage class for DVD information like they are used to identify a DVD, to display information about it to the user and to find it for replaying


Field Summary
 long crcid
           
 int disc
           
 String ean
           
 String genre
           
 int idx
           
 String imgUrl
           
 boolean localOnly
           
 int season
           
 int time
           
 int year
           
 
Fields inherited from class base.MediaInfo
path, title
 
Constructor Summary
DVDInfo()
          The default constructor of class DVDInfo
DVDInfo(int idx, String ean, int time, int year, long crcid, String title, String genre, int season, int disc)
          The standard constructor for a object of type DVDInfo
 
Method Summary
 void set(DVDInfo info)
          This method sets new DVD data depending on the in coming values: in case some fields of the given object are not set the original values of the own object will be left untouched
 
Methods inherited from class base.MediaInfo
set
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

idx

public int idx

time

public int time

year

public int year

season

public int season

disc

public int disc

crcid

public long crcid

genre

public String genre

imgUrl

public String imgUrl

ean

public String ean

localOnly

public boolean localOnly
Constructor Detail

DVDInfo

public DVDInfo()
The default constructor of class DVDInfo


DVDInfo

public DVDInfo(int idx,
               String ean,
               int time,
               int year,
               long crcid,
               String title,
               String genre,
               int season,
               int disc)
The standard constructor for a object of type DVDInfo

Parameters:
idx - an unique identifier for a DVD
ean - the EAN (European Article Number) of a DVD
time - the total runtime (in minutes) of the whole movie of the DVD; in case there are several movies/several parts on one DVD this value specifies the total time of all of them
year - the year this DVD was released
crcid - a checksum that uniquely identifies a DVD, the algorithm for that checksum is specified by http://dvd-db.dk
title - the title of the DVD
genre - the genre of the DVD
season - the season this DVD belongs to; this parameter applies to series only and not to movies
Method Detail

set

public void set(DVDInfo info)
This method sets new DVD data depending on the in coming values: in case some fields of the given object are not set the original values of the own object will be left untouched

Parameters:
info - the new DVDInfo data that have to be set