tvbrowser.extras.favoritesplugin.core
Class Exclusion
java.lang.Object
tvbrowser.extras.favoritesplugin.core.Exclusion
- All Implemented Interfaces:
- java.lang.Comparable<Exclusion>
public class Exclusion
- extends java.lang.Object
- implements java.lang.Comparable<Exclusion>
Constructor Summary |
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DAYLIMIT_DAILY
public static final int DAYLIMIT_DAILY
- See Also:
- Constant Field Values
Exclusion
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)
- Creates a new exclusion criteria.
- Parameters:
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 filtered
Exclusion
public Exclusion(java.io.ObjectInputStream in)
throws java.lang.ClassNotFoundException,
java.io.IOException
- Throws:
java.lang.ClassNotFoundException
java.io.IOException
writeData
public void writeData(java.io.ObjectOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
getTitle
public java.lang.String getTitle()
getTopic
public java.lang.String getTopic()
getEpisodeTitle
public java.lang.String getEpisodeTitle()
getFilter
public ProgramFilter getFilter()
getChannel
public Channel getChannel()
getTimeLowerBound
public int getTimeLowerBound()
getTimeUpperBound
public int getTimeUpperBound()
getDayOfWeek
public int getDayOfWeek()
getCategory
public int getCategory()
isProgramExcluded
public boolean isProgramExcluded(Program prog)
isInvalid
public boolean isInvalid()
- Gets if this Exclusion is invalid.
- Returns:
True
if this Exclusion is invalid, false
otherwise.
compareTo
public int compareTo(Exclusion other)
- Specified by:
compareTo
in interface java.lang.Comparable<Exclusion>
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
TV-Browser 3.4, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)