public class ProgramEventImpl extends Object implements ProgramEvent
| Constructor and Description |
|---|
ProgramEventImpl(String programName,
String serviceName,
Date startTime,
Date endTime,
ServiceInformationType siType,
ContentRatingAdvisory rating,
Date updatedTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
compareTo(Date current)
Compares this program event to the provided date.
|
long |
getDuration()
Returns the duration of this program event in seconds.
|
Date |
getEndTime()
Returns the end time of this program event.
|
Locator |
getLocator()
Gets the complete Locator of this SI Element.
|
String |
getName()
Returns the program event title.
|
ContentRatingAdvisory |
getRating()
Returns a Content Advisory information associated with this program for
the local rating region.
|
Service |
getService()
Returns the Service this program event is associated with.
|
ServiceInformationType |
getServiceInformationType()
Reports the service information format of this object.
|
Date |
getStartTime()
Returns the start time of this program event.
|
Date |
getUpdateTime()
Returns the time when this object was last updated from data in
the broadcast.
|
boolean |
isIncluded(Date current) |
SIRequest |
retrieveComponents(SIRequestor requestor)
Retrieves a list of service components which are part of this program.
|
SIRequest |
retrieveDescription(SIRequestor requestor)
Retrieves a textual description of the event.
|
public ProgramEventImpl(String programName, String serviceName, Date startTime, Date endTime, ServiceInformationType siType, ContentRatingAdvisory rating, Date updatedTime)
public Date getStartTime()
getStartTime in interface ProgramEventpublic Date getEndTime()
getEndTime in interface ProgramEventpublic long getDuration()
getDuration in interface ProgramEventpublic String getName()
getName in interface ProgramEventpublic SIRequest retrieveDescription(SIRequestor requestor)
This method delivers its results asynchronously.
retrieveDescription in interface ProgramEventrequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.ProgramEventDescriptionpublic ContentRatingAdvisory getRating()
getRating in interface ProgramEventContentRatingAdvisory object describing the
rating of this ProgramEvent or null if
no rating information is available.ContentRatingAdvisorypublic Service getService()
getService in interface ProgramEventpublic SIRequest retrieveComponents(SIRequestor requestor)
This method delivers its results asynchronously.
retrieveComponents in interface ProgramEventrequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieveal request.javax.tv.service.ServiceComponentpublic Locator getLocator()
getLocator in interface SIElementpublic Date getUpdateTime()
getUpdateTime in interface SIRetrievablenull
if unknown.public ServiceInformationType getServiceInformationType()
getServiceInformationType in interface SIElementpublic long compareTo(Date current)
compareDate - the Date to be compared.public boolean isIncluded(Date current)
Copyright © 2012 code4tv.com. All Rights Reserved.