public class Exclusion extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DAYLIMIT_DAILY |
static int |
DAYLIMIT_FRIDAY |
static int |
DAYLIMIT_MONDAY |
static int |
DAYLIMIT_SATURDAY |
static int |
DAYLIMIT_SUNDAY |
static int |
DAYLIMIT_THURSDAY |
static int |
DAYLIMIT_TUESDAY |
static int |
DAYLIMIT_WEDNESDAY |
static int |
DAYLIMIT_WEEKDAY |
static int |
DAYLIMIT_WEEKEND |
Constructor and Description |
---|
Exclusion(ObjectInputStream in) |
Exclusion(String title,
String topic,
Channel channel,
int timeFrom,
int timeTo,
int dayOfWeek,
String filterName)
Creates a new exclusion criteria.
|
Modifier and Type | Method and Description |
---|---|
Channel |
getChannel() |
int |
getDayOfWeek() |
ProgramFilter |
getFilter() |
int |
getTimeLowerBound() |
int |
getTimeUpperBound() |
String |
getTitle() |
String |
getTopic() |
boolean |
isInvalid()
Gets if this Exclusion is invalid.
|
boolean |
isProgramExcluded(Program prog) |
void |
writeData(ObjectOutputStream out) |
public static final int DAYLIMIT_DAILY
public static final int DAYLIMIT_WEEKEND
public static final int DAYLIMIT_WEEKDAY
public static final int DAYLIMIT_SUNDAY
public static final int DAYLIMIT_MONDAY
public static final int DAYLIMIT_TUESDAY
public static final int DAYLIMIT_WEDNESDAY
public static final int DAYLIMIT_THURSDAY
public static final int DAYLIMIT_FRIDAY
public static final int DAYLIMIT_SATURDAY
public Exclusion(String title, String topic, Channel channel, int timeFrom, int timeTo, int dayOfWeek, String filterName)
title
- null, if any title is allowedtopic
- null, if any keyword is allowedchannel
- null, if any channel is allowedtimeFrom
- lower time limit (or -1, if no lower limit exists)timeTo
- upper time limit (or -1, if no upper limit exists)dayOfWeek
- The day of week to use.filterName
- The name of the filter to use;public Exclusion(ObjectInputStream in) throws ClassNotFoundException, IOException
ClassNotFoundException
IOException
public void writeData(ObjectOutputStream out) throws IOException
IOException
public String getTitle()
public String getTopic()
public ProgramFilter getFilter()
public Channel getChannel()
public int getTimeLowerBound()
public int getTimeUpperBound()
public int getDayOfWeek()
public boolean isProgramExcluded(Program prog)
public boolean isInvalid()
True
if this Exclusion is invalid, false
otherwise.TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)