public final class SIElementFilter extends ServiceFilter
SIElementFilter represents a
ServiceFilter based on a particular
SIElement (such as a TransportStream or
ProgramEvent). A ServiceList resulting
from this filter will include only Service objects
with one or more corresponding ServiceDetails,
sd, such that:
sd is contained by
the specified SIElement, or
sd
contains the specified SIElement
SIElement provided. Note that no guarantee
is made that every SIElement type is supported for
filtering.SIElement,
ServiceList| Constructor and Description |
|---|
SIElementFilter(SIElement element)
Constructs the filter based on a particular
SIElement. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Service service)
Tests if the given service passes the filter.
|
SIElement |
getFilterValue()
Reports the
SIElement used to create this filter. |
public SIElementFilter(SIElement element) throws FilterNotSupportedException
SIElement.element - An SIElement indicating the services
to be included in a resulting service list.FilterNotSupportedException - If element is
not supported for filtering.public SIElement getFilterValue()
SIElement used to create this filter.SIElement used to create this filter.public boolean accept(Service service)
accept in class ServiceFilterservice - An individual Service to be evaluated
against the filtering algorithm.true if service has a
corresponding ServiceDetails which contains or
is contained by the SIElement indicated
by the filter value; false otherwise.Copyright © 2012 code4tv.com. All Rights Reserved.