|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.dtt.ca.ppv.Product
it.dtt.ca.ppv.PPVPackage
public class PPVPackage
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 |
---|
protected PPVPackage(java.lang.String id, java.lang.String name, Product[] products)
id
- the PPV package id.name
- the PPV package name.products
- the products contained in this package.Method Detail |
---|
public boolean isFree() throws FieldNotPresentException
Product
isFree
in class Product
FieldNotPresentException
- if the field is not storedpublic int getType()
getType
in class Product
Product.PPV_PACKAGE
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |