public class ServiceDetailsImpl extends Object implements ServiceDetails, ServiceProviderInformation
Service object and represents a
specific instance of a service bound to a transport stream.
A ServiceDetailsImpl object may optionally implement the
ServiceNumber interface to report service numbers as
assigned by the broadcaster of the Service
A ServiceDetailsImpl object may optionally implement the
ServiceProviderInformation interface to report information
concerning the service provider.
Service,
ServiceNumber,
ServiceProviderInformation| Constructor and Description |
|---|
ServiceDetailsImpl(ServiceImpl service,
String providerName,
DeliverySystemType deliverySystemType,
String longname,
int[] caSystemIDs,
Date updatedTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
addServiceComponentChangeListener(ServiceComponentChangeListener listener)
Registers a
ServiceComponentChangeListener to be notified of
changes to a ServiceComponent that is part of
this ServiceDetails. |
int[] |
getCASystemIDs()
Returns an array of CA System IDs associated with this object.
|
DeliverySystemType |
getDeliverySystemType()
This method provides information about the type of delivery mechanism
used for the content described by this object.
|
Locator |
getLocator()
Gets the complete Locator of this SI Element.
|
String |
getLongName()
Called to obtain a full service name.
|
ProgramSchedule |
getProgramSchedule()
Returns a schedule of program events associated with this Service.
|
String |
getProviderName()
Returns the name of the service provider.
|
Service |
getService()
Returns the Service this ServiceDetailsImpl object is associated with.
|
ServiceInformationType |
getServiceInformationType()
Reports the service information format of this object.
|
ServiceType |
getServiceType()
Retuns the type of this service.
|
Date |
getUpdateTime()
Returns the time when this object was last updated from data in
the broadcast.
|
boolean |
isFree()
Provides information about conditional access of this object.
|
void |
notifyListeners(ServiceComponentChangeEvent event)
Notify all listeners that ServiceComponent has been changed.
|
void |
removeServiceComponentChangeListener(ServiceComponentChangeListener listener)
Called to unregister an
ServiceComponentChangeListener. |
SIRequest |
retrieveComponents(SIRequestor requestor)
Retrieves a list of elementary components which are part of this
service.
|
SIRequest |
retrieveServiceDescription(SIRequestor requestor)
Retrieves a textual description of this service if available.
|
public ServiceDetailsImpl(ServiceImpl service, String providerName, DeliverySystemType deliverySystemType, String longname, int[] caSystemIDs, Date updatedTime)
public SIRequest retrieveServiceDescription(SIRequestor requestor)
This method delivers its results asynchronously.
retrieveServiceDescription in interface ServiceDetailsrequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieval request.ServiceDescriptionpublic ServiceType getServiceType()
getServiceType in interface ServiceDetailspublic SIRequest retrieveComponents(SIRequestor requestor)
This method delivers its results asynchronously.
retrieveComponents in interface ServiceDetailsrequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieval request.javax.tv.service.ServiceComponentpublic ProgramSchedule getProgramSchedule()
getProgramSchedule in interface ServiceDetailspublic String getLongName()
getLongName in interface ServiceDetailspublic Service getService()
getService in interface ServiceDetailspublic int[] getCASystemIDs()
getCASystemIDs in interface CAIdentificationpublic boolean isFree()
isFree in interface CAIdentificationpublic DeliverySystemType getDeliverySystemType()
getDeliverySystemType in interface ServiceDetailspublic Locator getLocator()
getLocator in interface SIElementpublic Date getUpdateTime()
getUpdateTime in interface SIRetrievablenull
if unknown.public ServiceInformationType getServiceInformationType()
getServiceInformationType in interface SIElementpublic String getProviderName()
getProviderName in interface ServiceProviderInformationpublic void addServiceComponentChangeListener(ServiceComponentChangeListener listener) throws SecurityException
ServiceComponentChangeListener to be notified of
changes to a ServiceComponent that is part of
this ServiceDetails. Subsequent notification is made via
ServiceComponentChangeEvent with this
ServiceDetails instance as the event source.This method is only a request for notification. No guarantee is provided that the SI database will detect all, or even any, SI changes or whether such changes will be detected in a timely fashion.
If the specified ServiceComponentChangeListener is
already registered, no action is performed.
addServiceComponentChangeListener in interface ServiceDetailslistener - A ServiceComponentChangeListener to be
notified about changes related to a ServiceComponent
in this ServiceDetails.SecurityExceptionServiceComponentChangeEvent,
ReadPermissionpublic void removeServiceComponentChangeListener(ServiceComponentChangeListener listener)
ServiceComponentChangeListener. If the specified
ServiceComponentChangeListener is not registered, no
action is performed.removeServiceComponentChangeListener in interface ServiceDetailslistener - A previously registered listener.public void notifyListeners(ServiceComponentChangeEvent event)
Copyright © 2012 code4tv.com. All Rights Reserved.