Module tvbrowser

Class ChannelFilter


  • public class ChannelFilter
    extends java.lang.Object
    Filters for a specific Country, Category and/or Channelname
    • Constructor Summary

      Constructors 
      Constructor Description
      ChannelFilter()
      Creates an empty Filter
      ChannelFilter​(java.lang.String country, int categories, java.lang.String name)
      Creates the Filter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean accept​(Channel channel)  
      void setFilter​(java.lang.String country, int[] categories, java.lang.String name)
      Set the Values in the Filter
      void setFilter​(java.lang.String country, int[] categories, java.lang.String name, java.lang.String plugin)  
      void setFilter​(java.lang.String country, int category, java.lang.String name)
      Set the Values in the Filter
      void setFilter​(java.lang.String country, int category, java.lang.String name, java.lang.String plugin)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ChannelFilter

        public ChannelFilter()
        Creates an empty Filter
      • ChannelFilter

        public ChannelFilter​(java.lang.String country,
                             int categories,
                             java.lang.String name)
        Creates the Filter
        Parameters:
        country - Country to use or NULL
        categories - Category to use, if < 0 don't use category, if MAX_INT don't use category
        name - Name to search for. This is an "and" Search. Search-Terms are separated by Whitespace
    • Method Detail

      • setFilter

        public void setFilter​(java.lang.String country,
                              int category,
                              java.lang.String name)
        Set the Values in the Filter
        Parameters:
        country - The country.
        category - The category.
        name - The name.
      • setFilter

        public void setFilter​(java.lang.String country,
                              int category,
                              java.lang.String name,
                              java.lang.String plugin)
      • setFilter

        public void setFilter​(java.lang.String country,
                              int[] categories,
                              java.lang.String name)
        Set the Values in the Filter
        Parameters:
        country - The country.
        categories - The category.
        name - The name.
      • setFilter

        public void setFilter​(java.lang.String country,
                              int[] categories,
                              java.lang.String name,
                              java.lang.String plugin)
      • accept

        public boolean accept​(Channel channel)
        Parameters:
        channel - Channel to check
        Returns:
        True if Channel is accepted by this Filter