|
|||||||||
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.PPVEvent
public class PPVEvent
Class describing PPV events. Where methods take an array as an input parameter, implementations should take a copy of the array. Where methods return an array, a copy should be returned and modifications to the array should be ignored by the implementation until or unless the array is passed back to the implementation as a parameter to a method call.
Field Summary |
---|
Fields inherited from class it.dtt.ca.ppv.Product |
---|
GENERIC_PRODUCT, PPT_EVENT, PPV_EVENT, PPV_PACKAGE, SUBSCRIPTION |
Constructor Summary | |
---|---|
protected |
PPVEvent(java.lang.String id,
java.lang.String name,
javax.tv.locator.Locator locator,
javax.tv.service.guide.ContentRatingAdvisory rating,
java.util.Date startTime,
java.util.Date endTime,
PPVPackage[] packages)
Create a PPVEvent. |
Method Summary | |
---|---|
java.util.Date |
getEndTime()
Get the ending time of the PPV event. |
javax.tv.locator.Locator |
getLocator()
Returns the locator connected with this event. |
PPVPackage[] |
getPackages()
Provides the list of packages in which this PPV event is contained. |
javax.tv.service.guide.ContentRatingAdvisory |
getRating()
Get the rating of this event. |
java.util.Date |
getStartTime()
Get the starting time of the PPV event. |
int |
getType()
Returns the product type |
boolean |
isFree()
Check if the product is freely viewable. |
protected void |
setEndTime(java.util.Date endTime)
Deprecated. no replacement Set the ending time of the PPV event. |
protected void |
setPackages(PPVPackage[] packages)
Deprecated. no replacement Set the list of packages in which this PPV event is contained. |
protected void |
setStartTime(java.util.Date startTime)
Deprecated. no replacement Set the starting time of the PPV event. |
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 PPVEvent(java.lang.String id, java.lang.String name, javax.tv.locator.Locator locator, javax.tv.service.guide.ContentRatingAdvisory rating, java.util.Date startTime, java.util.Date endTime, PPVPackage[] packages)
id
- the PPV event id.name
- the PPV event name.locator
- the locator of this PPV event.rating
- the rating of this PPV event.startTime
- the start time of this PPV event.endTime
- the end time of this PPV event.packages
- the array containing all packages associated to this PPV event.Method Detail |
---|
public javax.tv.service.guide.ContentRatingAdvisory getRating()
public javax.tv.locator.Locator getLocator()
public PPVPackage[] getPackages() throws FieldNotPresentException
FieldNotPresentException
- if the information is not available.protected void setPackages(PPVPackage[] packages)
packages
- The packages to set.public java.util.Date getStartTime() throws FieldNotPresentException
FieldNotPresentException
- if the field is not storedprotected void setStartTime(java.util.Date startTime)
startTime
- The startTime to set.public java.util.Date getEndTime() throws FieldNotPresentException
FieldNotPresentException
- if the field is not storedprotected void setEndTime(java.util.Date endTime)
endTime
- The endTime to set.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_EVENT
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |