Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-927 (Maintenance Release)

javax.tv.service.navigation
Class ServiceFilter

java.lang.Object
  extended byjavax.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.

JSR-927 (Maintenance Release)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 927 specification.