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 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 |
ServiceFilter
protected ServiceFilter()
- Constructs the filter.
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.
Copyright © 2011. All Rights Reserved.