public class ServiceImpl extends Object implements Service, SIElement, ServiceNumber, ServiceMinorNumber
| Constructor and Description |
|---|
ServiceImpl(String serviceName,
boolean hasMultiples,
ServiceType sType,
ServiceInformationType siType,
int serviceNumber,
int minorNumber,
Date updatedTime)
The ServiceImpl constructor accepts all information to setup a service entry
in the SI database.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
Tests two
Service objects for equality. |
Locator |
getLocator()
Gets the complete Locator of this SI Element.
|
int |
getMinorNumber()
Reports the minor number of the service.
|
String |
getName()
Returns a short service name or an acronym.
|
int |
getPresentationTerminatedReason() |
int |
getSelectionFailedReason() |
ServiceInformationType |
getServiceInformationType()
Reports the service information format of this object.
|
int |
getServiceNumber()
Reports the service number of a service.
|
ServiceType |
getServiceType()
Retuns the type of this service.
|
Date |
getUpdateTime()
Returns the time when this object was last updated from data in
the broadcast.
|
int |
hashCode()
Reports the hash code value of this
Service. |
boolean |
hasMultipleInstances()
This method indicates whether the service represented by this Service
is available on multiple transports.
|
SIRequest |
retrieveDetails(SIRequestor requestor)
This method retrieves additional information about the Service.
|
void |
setPresentationTerminatedReason(int reason) |
void |
setSelectionFailedReason(int reason) |
public ServiceImpl(String serviceName, boolean hasMultiples, ServiceType sType, ServiceInformationType siType, int serviceNumber, int minorNumber, Date updatedTime)
public String getName()
public boolean hasMultipleInstances()
hasMultipleInstances in interface Servicepublic ServiceType getServiceType()
getServiceType in interface Servicepublic Locator getLocator()
getLocator in interface ServicegetLocator in interface SIElementServiceDetailspublic Date getUpdateTime()
getUpdateTime in interface SIRetrievablenull
if unknown.public ServiceInformationType getServiceInformationType()
getServiceInformationType in interface SIElementpublic int getServiceNumber()
getServiceNumber in interface ServiceNumberpublic int getMinorNumber()
getMinorNumber in interface ServiceMinorNumberpublic SIRequest retrieveDetails(SIRequestor requestor)
Note that if the content represented by this Service is delivered on multiple transport-dependent streams, there may be multiple ServiceDetails for it. This method returns one of them based on availability or user preferences. If access to all of them is required, the Service Locator can be transformed to transport-dependent Locators and ServiceDetails can be requested for each one of them.
This method returns data asynchronously.
retrieveDetails in interface Servicerequestor - The SIRequestor to be notified
when this retrieval operation completes.SIRequest object identifying this
asynchronous retrieval request.Locator,
ServiceDetailspublic boolean equals(Object obj)
Service objects for equality. Returns
true if and only if:
obj's class is the
same as the class of this Service, and
obj's Locator is equal to
the Locator of this Service
(as reported by
Service.getLocator(), and
obj and this object encapsulate identical data.
public int hashCode()
Service. Two
Service objects that are equal will have identical
hash codes.public void setPresentationTerminatedReason(int reason)
public int getPresentationTerminatedReason()
public void setSelectionFailedReason(int reason)
public int getSelectionFailedReason()
Copyright © 2012 code4tv.com. All Rights Reserved.