it.dtt.ca.ppv
Class PPVPackage

java.lang.Object
  extended by it.dtt.ca.ppv.Product
      extended by it.dtt.ca.ppv.PPVPackage

public class PPVPackage
extends Product

This class represents a collection of PPVEvent objects sold together as a package.


Field Summary
 
Fields inherited from class it.dtt.ca.ppv.Product
GENERIC_PRODUCT, PPT_EVENT, PPV_EVENT, PPV_PACKAGE, SUBSCRIPTION
 
Constructor Summary
protected PPVPackage(java.lang.String id, java.lang.String name, Product[] products)
          Construct a PPVPackage.
 
Method Summary
 int getType()
          Returns the product type
 boolean isFree()
          Check if the product is freely viewable.
 
Methods inherited from class it.dtt.ca.ppv.Product
equals, getContainedProducts, getDescription, getExtendedDescription, getId, getName, getPreviewTime, getPrice, getPrivateData, getPurchaseWindowEndTime, getPurchaseWindowStartTime, hashCode, setDescription, setExtendedDescription, setPreviewTime, setPrivateData, setPurchaseWindowEndTime, setPurchaseWindowStartTime
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PPVPackage

protected PPVPackage(java.lang.String id,
                     java.lang.String name,
                     Product[] products)
Construct a PPVPackage.

Parameters:
id - the PPV package id.
name - the PPV package name.
products - the products contained in this package.
Method Detail

isFree

public boolean isFree()
               throws FieldNotPresentException
Description copied from class: Product
Check if the product is freely viewable.

Specified by:
isFree in class Product
Returns:
true if the product is free, false if the product is a pay per view product.
Throws:
FieldNotPresentException - if the field is not stored

getType

public int getType()
Returns the product type

Specified by:
getType in class Product
Returns:
product type
See Also:
Product.PPV_PACKAGE