TV-Browser 2.7.5 API

tvbrowser.extras.favoritesplugin.core
Class Exclusion

java.lang.Object
  extended by tvbrowser.extras.favoritesplugin.core.Exclusion

public class Exclusion
extends Object


Field Summary
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 Summary
Exclusion(ObjectInputStream in)
           
Exclusion(String title, String topic, Channel channel, int timeFrom, int timeTo, int dayOfWeek, String filterName)
          Creates a new exclusion criteria.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DAYLIMIT_DAILY

public static final int DAYLIMIT_DAILY
See Also:
Constant Field Values

DAYLIMIT_WEEKEND

public static final int DAYLIMIT_WEEKEND
See Also:
Constant Field Values

DAYLIMIT_WEEKDAY

public static final int DAYLIMIT_WEEKDAY
See Also:
Constant Field Values

DAYLIMIT_SUNDAY

public static final int DAYLIMIT_SUNDAY
See Also:
Constant Field Values

DAYLIMIT_MONDAY

public static final int DAYLIMIT_MONDAY
See Also:
Constant Field Values

DAYLIMIT_TUESDAY

public static final int DAYLIMIT_TUESDAY
See Also:
Constant Field Values

DAYLIMIT_WEDNESDAY

public static final int DAYLIMIT_WEDNESDAY
See Also:
Constant Field Values

DAYLIMIT_THURSDAY

public static final int DAYLIMIT_THURSDAY
See Also:
Constant Field Values

DAYLIMIT_FRIDAY

public static final int DAYLIMIT_FRIDAY
See Also:
Constant Field Values

DAYLIMIT_SATURDAY

public static final int DAYLIMIT_SATURDAY
See Also:
Constant Field Values
Constructor Detail

Exclusion

public Exclusion(String title,
                 String topic,
                 Channel channel,
                 int timeFrom,
                 int timeTo,
                 int dayOfWeek,
                 String filterName)
Creates a new exclusion criteria.

Parameters:
title - null, if any title is allowed
topic - null, if any keyword is allowed
channel - null, if any channel is allowed
timeFrom - 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;

Exclusion

public Exclusion(ObjectInputStream in)
          throws ClassNotFoundException,
                 IOException
Throws:
ClassNotFoundException
IOException
Method Detail

writeData

public void writeData(ObjectOutputStream out)
               throws IOException
Throws:
IOException

getTitle

public String getTitle()

getTopic

public String getTopic()

getFilter

public ProgramFilter getFilter()

getChannel

public Channel getChannel()

getTimeLowerBound

public int getTimeLowerBound()

getTimeUpperBound

public int getTimeUpperBound()

getDayOfWeek

public int getDayOfWeek()

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.

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)