buttress.main
Class Filter

java.lang.Object
  extended bybuttress.main.Filter

public class Filter
extends java.lang.Object


Constructor Summary
Filter()
          Default Constructor
Filter(java.lang.String s)
          Constructor with show
Filter(java.lang.String s, java.util.ArrayList a)
          Constructor with show and keywords
 
Method Summary
static boolean addAFilter(Filter newFilter)
          Adds a filter to the big list of all filters
 boolean addKeyword(java.lang.Object k)
          add a keyword to the arraylist
 boolean containsKeyword(java.lang.Object k)
          checks if object is in the array
 int getAmtKeywords()
          gets the int value of the size of the keywords arraylist
static java.util.ArrayList getBigListOfAllFilters()
           
 java.lang.String getKeyword(int i)
          gets the keyword at index i
 java.lang.String getShow()
          gets the show string
 java.lang.Object removeKeyword(int i)
          removes keyword at index i
static java.util.ArrayList setBigListOfAllFilters(java.util.ArrayList newBigList)
           
 void setShow(java.lang.String s)
          set the show variable
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Filter

public Filter()
Default Constructor


Filter

public Filter(java.lang.String s)
Constructor with show

Parameters:
s - String

Filter

public Filter(java.lang.String s,
              java.util.ArrayList a)
Constructor with show and keywords

Parameters:
s - String
a - ArrayList
Method Detail

getShow

public java.lang.String getShow()
gets the show string

Returns:
show string

setShow

public void setShow(java.lang.String s)
set the show variable

Parameters:
s - String

addKeyword

public boolean addKeyword(java.lang.Object k)
add a keyword to the arraylist

Parameters:
k - Object
Returns:
true if the keyword is added

containsKeyword

public boolean containsKeyword(java.lang.Object k)
checks if object is in the array

Parameters:
k - Object
Returns:
true is the array contains the object

getKeyword

public java.lang.String getKeyword(int i)
gets the keyword at index i

Parameters:
i - int
Returns:
keyword as a string

removeKeyword

public java.lang.Object removeKeyword(int i)
removes keyword at index i

Parameters:
i - int
Returns:
keyword removed

getAmtKeywords

public int getAmtKeywords()
gets the int value of the size of the keywords arraylist

Returns:
keywords.size()

getBigListOfAllFilters

public static java.util.ArrayList getBigListOfAllFilters()
Returns:
Returns the bigListOfAllFilters.

setBigListOfAllFilters

public static java.util.ArrayList setBigListOfAllFilters(java.util.ArrayList newBigList)
Parameters:
newBigList - ArayList The bigListOfAllFilters to set.
Returns:
newBigList

addAFilter

public static boolean addAFilter(Filter newFilter)
Adds a filter to the big list of all filters

Parameters:
newFilter - the filter to add
Returns:
whether or not it added

toString

public java.lang.String toString()