Modifier and Type | Field and Description |
---|---|
static int |
DAYLIMIT_DAILY |
Constructor and Description |
---|
Exclusion(java.io.ObjectInputStream in) |
Exclusion(java.lang.String title,
java.lang.String topic,
Channel channel,
int timeFrom,
int timeTo,
int dayOfWeek,
java.lang.String filterName,
java.lang.String episodeTitle,
int category)
Creates a new exclusion criteria.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(Exclusion other) |
int |
getCategory() |
Channel |
getChannel() |
int |
getDayOfWeek() |
java.lang.String |
getEpisodeTitle() |
ProgramFilter |
getFilter() |
int |
getTimeLowerBound() |
int |
getTimeUpperBound() |
java.lang.String |
getTitle() |
java.lang.String |
getTopic() |
boolean |
isInvalid()
Gets if this Exclusion is invalid.
|
boolean |
isProgramExcluded(Program prog) |
java.lang.String |
toString() |
void |
writeData(java.io.ObjectOutputStream out) |
public static final int DAYLIMIT_DAILY
public Exclusion(java.lang.String title, java.lang.String topic, Channel channel, int timeFrom, int timeTo, int dayOfWeek, java.lang.String filterName, java.lang.String episodeTitle, int category)
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;episodeTitle
- null, if any episode title is allowedcategory
- the category of the program or 0 if no category should be filteredpublic Exclusion(java.io.ObjectInputStream in) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
public void writeData(java.io.ObjectOutputStream out) throws java.io.IOException
java.io.IOException
public java.lang.String getTitle()
public java.lang.String getTopic()
public java.lang.String getEpisodeTitle()
public ProgramFilter getFilter()
public Channel getChannel()
public int getTimeLowerBound()
public int getTimeUpperBound()
public int getDayOfWeek()
public int getCategory()
public boolean isProgramExcluded(Program prog)
public boolean isInvalid()
True
if this Exclusion is invalid, false
otherwise.public int compareTo(Exclusion other)
compareTo
in interface java.lang.Comparable<Exclusion>
public java.lang.String toString()
toString
in class java.lang.Object
TV-Browser 3.4.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)