Java TV(tm) API 1.0

javax.tv.service.navigation
Class ServiceFilter

java.lang.Object
  |
  +--javax.tv.service.navigation.ServiceFilter
Direct Known Subclasses:
LocatorFilter, PreferenceFilter, ServiceTypeFilter, SIElementFilter

public abstract class ServiceFilter
extends java.lang.Object

This class represents a set filtering criteria used to generate a ServiceList. ServiceFilter is extended to create concrete filters based on various criteria. Applications may also extend this class to define custom filters, although custom filters may not be supported on certain filtering operations.

See Also:
ServiceList

Constructor Summary
protected ServiceFilter()
          Constructs the filter.
 
Method Summary
abstract  boolean accept(Service service)
          Tests if a particular service passes this filter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceFilter

protected ServiceFilter()
Constructs the filter.
Method Detail

accept

public abstract boolean accept(Service service)
Tests if a particular service passes this filter. Subtypes of ServiceFilter override this method to provide the logic for a filtering operation on individual Service objects.
Parameters:
service - A Service to be evaluated against the filtering algorithm.
Returns:
true if service satisfies the filtering algorithm; false otherwise.

Java TV(tm) API 1.0

Copyright © 1998 - 2000 Sun Microsystems, Inc.