|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.tv.service.navigation.ServiceFilter
javax.tv.service.navigation.LocatorFilter
public final class LocatorFilter
LocatorFilter represents a ServiceFilter
based on a set of locators. A ServiceList resulting
from this filter will include only services matching the specified
locators.
Locator,
ServiceList| Constructor Summary | |
|---|---|
LocatorFilter(Locator[] locators)
Constructs the filter based on a set of locators. |
|
| Method Summary | |
|---|---|
boolean |
accept(Service service)
Tests if the given service passes the filter. |
Locator[] |
getFilterValue()
Reports the locators used to create this filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocatorFilter(Locator[] locators)
throws InvalidLocatorException
locators - An array of locators representing services
to be included in a resulting ServiceList.
InvalidLocatorException - If one of the given
locators does not reference a valid
Service.| Method Detail |
|---|
public Locator[] getFilterValue()
public boolean accept(Service service)
locator.equals(Service.getLocator()) returns
true.
accept in class ServiceFilterservice - An individual Service to be evaluated
against the filtering algorithm.
true if service passes the filter;
false otherwise.Service.getLocator(),
Locator.equals(java.lang.Object),
Locator.toExternalForm()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||