|
|||||||||
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.GenericProduct
public class GenericProduct
This class represents products which can be bought through the CA system but which do not correspond to any of the other sub-classes of Product. It implements methods left abstract in base class Product.
Field Summary |
---|
Fields inherited from class it.dtt.ca.ppv.Product |
---|
GENERIC_PRODUCT, PPT_EVENT, PPV_EVENT, PPV_PACKAGE, SUBSCRIPTION |
Constructor Summary | |
---|---|
protected |
GenericProduct(java.lang.String id,
java.lang.String name)
Create an instance of GenericProduct representing content that can be purchased through the CA system. |
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 GenericProduct(java.lang.String id, java.lang.String name)
id
- the product id.name
- the product name.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.GENERIC_PRODUCT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |