org.dvb.service.navigation
Class ServiceProviderFilter

java.lang.Object
  extended by javax.tv.service.navigation.ServiceFilter
      extended by org.dvb.service.navigation.ServiceProviderFilter

public final class ServiceProviderFilter
extends javax.tv.service.navigation.ServiceFilter

ServiceProviderFilter represents a ServiceFilter based on a particular ServiceProviderInformation. A ServiceList resulting from this filter will include only Service objects that can be provided by the specified service provider.


Constructor Summary
ServiceProviderFilter(javax.tv.service.navigation.ServiceProviderInformation provider)
          Constructs the filter based on a particular ServiceProviderInformation.
 
Method Summary
 boolean accept(javax.tv.service.Service service)
          Tests if the given service passes the filter.
 javax.tv.service.navigation.ServiceProviderInformation getFilterValue()
          Reports the ServiceProviderInformation used to create this filter.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceProviderFilter

public ServiceProviderFilter(javax.tv.service.navigation.ServiceProviderInformation provider)
Constructs the filter based on a particular ServiceProviderInformation.

Parameters:
provider - A ServiceProviderInformation object indicating the service provider for the services to be included in a resulting service list.
Method Detail

getFilterValue

public javax.tv.service.navigation.ServiceProviderInformation getFilterValue()
Reports the ServiceProviderInformation used to create this filter.

Returns:
The ServiceProviderInformation used to create this filter.

accept

public boolean accept(javax.tv.service.Service service)
Tests if the given service passes the filter.

Specified by:
accept in class javax.tv.service.navigation.ServiceFilter
Parameters:
service - An individual Service to be evaluated against the filtering algorithm.
Returns:
true if service can be provided by the specified service provider; false otherwise