com.xenonsoft.bridgetown.examples.dvdrental
Class DVD

java.lang.Object
  extended bycom.xenonsoft.bridgetown.examples.dvdrental.DVD
All Implemented Interfaces:
java.io.Serializable

public class DVD
extends java.lang.Object
implements java.io.Serializable

This is value object class that represents one real world object namely a Digital Versatile Disc.

Version:
$Id: DVD.java,v 1.7 2005/03/29 23:41:24 peter_pilgrim Exp $
Author:
Peter Pilgrim, 11-Aug-2004
See Also:
Serialized Form

Constructor Summary
DVD()
          Default constructor
DVD(java.lang.String title, java.lang.String director, java.lang.String vendor, int year, int length, int chapters)
          Constructor
 
Method Summary
 int getChapters()
          Gets the chapters
 java.lang.String getDirector()
          Gets the director
 int getLength()
          Gets the length
 java.lang.String getTitle()
          Gets the title
 java.lang.String getVendor()
          Gets the vendor
 int getYear()
          Gets the year
 void setChapters(int chapters)
          Sets the chapters
 void setDirector(java.lang.String director)
          Sets the director
 void setLength(int length)
          Sets the length
 void setTitle(java.lang.String title)
          Sets the title
 void setVendor(java.lang.String vendor)
          Sets the vendor
 void setYear(int year)
          Sets the year
 java.lang.String toString()
          Gets debuggable string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DVD

public DVD()
Default constructor


DVD

public DVD(java.lang.String title,
           java.lang.String director,
           java.lang.String vendor,
           int year,
           int length,
           int chapters)
Constructor

Method Detail

getChapters

public int getChapters()
Gets the chapters

Returns:
Returns the chapters.

setChapters

public void setChapters(int chapters)
Sets the chapters

Parameters:
chapters - The chapters to set.

getDirector

public java.lang.String getDirector()
Gets the director

Returns:
Returns the director.

setDirector

public void setDirector(java.lang.String director)
Sets the director

Parameters:
director - The director to set.

getLength

public int getLength()
Gets the length

Returns:
Returns the length.

setLength

public void setLength(int length)
Sets the length

Parameters:
length - The length to set.

getTitle

public java.lang.String getTitle()
Gets the title

Returns:
Returns the title.

setTitle

public void setTitle(java.lang.String title)
Sets the title

Parameters:
title - The title to set.

getVendor

public java.lang.String getVendor()
Gets the vendor

Returns:
Returns the vendor.

setVendor

public void setVendor(java.lang.String vendor)
Sets the vendor

Parameters:
vendor - The vendor to set.

getYear

public int getYear()
Gets the year

Returns:
Returns the year.

setYear

public void setYear(int year)
Sets the year

Parameters:
year - The year to set.

toString

public java.lang.String toString()
Gets debuggable string



Copyright © 2005 XeNoNSoFT.com. All Rights Reserved.