public final class ChannelFilter extends java.lang.Object implements ProgramFilter
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Program program) |
static ChannelFilter |
createChannelFilterForName(java.lang.String name)
Creates a channel filter with the name of the
component to create the filter from.
|
Channel[] |
getChannels()
Gets all the channels of this channel filter.
|
java.lang.String |
getName() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public static ChannelFilter createChannelFilterForName(java.lang.String name) throws java.lang.ClassCastException, TvBrowserException
name
- The name of the filter component to create
the channel filter from.java.lang.ClassCastException
- Thrown if the found component is not a ChannelFilterComponent.TvBrowserException
- Thrown if the ChannelFilterComponent with the given name was not found.public boolean accept(Program program)
accept
in interface ProgramFilter
program
- the program to be checkedpublic java.lang.String getName()
getName
in interface ProgramFilter
public Channel[] getChannels()
TV-Browser 3.4.1.0, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)